Skip to main content
GameDev.net gamedev.net
🔒 Locked

Instance index within vertex shader.

Started by AmzBee Oct 17, 2012 at 8:19 AM 0 replies 800+ views
Original Post
AmzBee
AmzBee
Hi Everyone

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?

Thanks all

Aimee
We are now on Tumblr, so please come and check out our site!    http://xpod-games.com
AmzBee
AmzBee
Please feel free to ignore this question, my appologies I figured it out and have decided to go a different route for now :S
We are now on Tumblr, so please come and check out our site!    http://xpod-games.com

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.