Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

Instance index within vertex shader.


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 AmzBee   Members   -  Reputation: 417

Like
0Likes
Like

Posted 17 October 2012 - 02:19 AM

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
Aimee Bailey
Lead Programmer / Co-Founder

http://xpod-games.com
@XpodGames

Sponsor:

#2 AmzBee   Members   -  Reputation: 417

Like
0Likes
Like

Posted 17 October 2012 - 03:12 AM

Please feel free to ignore this question, my appologies I figured it out and have decided to go a different route for now :S
Aimee Bailey
Lead Programmer / Co-Founder

http://xpod-games.com
@XpodGames




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS