sharing vertex attributes between shaders

Started by
0 comments, last by C0lumbo 11 years, 4 months ago
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.
Advertisement
I use glBindAttribLocation on all my shaders to force attributes into known slots. You have to call it before linking your program.

This topic is closed to new replies.

Advertisement