sharing vertex attributes between shaders
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.
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
Popular Topics
Advertisement