Generic Vertex Attributes and Conventional vertex attributes

I’m trying to write a very general model class that may store different attributes for verteces. So I want to know how well can generic attributes be interchanged with convensional attributes so is


going to have the same affect on both the FFP and shaders as:

  glVertexAttrib3f(2, ...); 

AFAIK you may run into problems using glVertexAttrib3f(2, …) instead of glNormal3f(…) because there are no attribute indices defined for conventional attributes like Normal or Color, …
But I don’t exactly know…

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.