Instance index within vertex shader.,
Members - Reputation: 485
Posted 17 October 2012 - 02:19 AM
I'm currently trying to offload a task where I draw a bunch of sprites onto the graphics card as the GPU is not crunching much in our game, and I've been playing with the idea of instancing a single quad. My question is; is there any easy way to get an index of each instance within the vertex shader?
We are now on Tumblr, so please come and check out our site!