• Advertisement
Sign in to follow this  

Instance index within vertex shader.

This topic is 1921 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
Please feel free to ignore this question, my appologies I figured it out and have decided to go a different route for now :S

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement