I see now that I can get vertex and UV data from the texture to get the image data I want, but how do I figure out what the current animation frame is using this data?
I could use the texture ID and the geometry index, but sometimes my animations will reuse images, so they don’t map perfectly.
To clarify, I’m using sprite.play_flipbook to play animations, and I want to know which frame is currently being used in the animation. This is because I have colour data that I want to apply to the image through a shader, but that colour data changes depending on the frame.