Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


sharing vertex attributes between shaders


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 ic0de   Members   -  Reputation: 894

Like
0Likes
Like

Posted 14 December 2012 - 09:07 PM

I have several shaders that share a common set of vertex attributes and I was wondering if it was possible to share the index of a vertex attrib array between two or more shaders so that I don't need to bind a different vertex attrib array for each different shader I use.

Edited by ic0de, 14 December 2012 - 09:08 PM.

you know you program too much when you start ending sentences with semicolons;


Sponsor:

#2 C0lumbo   Crossbones+   -  Reputation: 2398

Like
1Likes
Like

Posted 15 December 2012 - 02:47 AM

I use glBindAttribLocation on all my shaders to force attributes into known slots. You have to call it before linking your program.




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