The Gaming Industry

Sep 2020

Question about OpenGL Instancing and spritesheets. Very confused.

I was able to get instancing working with OpenGL and created a grid of sprites (different positions)….but same art (sprite frame). I’m only passing the sprite coordinate matrix once as a uniform. Which is okay for none instanced sprites.

How would I go about passing different sprite coordinate matrices for each instance? Can or should I pass the matrices as an attribute the same way I did for the vec3 positions of the instances? I’m really confused about this 🙁 Would anybody have any

Powered by WPeMatico

Tags are not defined
Comments are closed.