How to render CompressedArrayTexture frame by frame?

I have a ktx2 compressed array texture made from 14 JPEG images, and 14 draco compressed meshes.
Currently I use requestAnimationFrame to show one mesh after the other. I want to apply the individual textures from the CompressedArrayTexture to corresponding draco geometry. How can I achieve this?

Answering my question after I figured it out.
We can control the frame number in KTX2 video texture using depth property. Like this

1 Like