how to provide vertexattributes when rendering with vertex arrays

Started by
2 comments, last by ehmdjii 13 years, 8 months ago
hello, since OpenGL ES doesnt provide functions like glVertex anymore i am forced to use vertex arrays, right?

but how would one provide vertex paramters via glVertexAttrib when rendering with VAs.

also how can you define hard edges? i.e. vertices with different normals depending on which face they belong too.

thanks!
Advertisement
glVertexAttribPointer, what else?
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.
Quote:Original post by ehmdjii
also how can you define hard edges? i.e. vertices with different normals depending on which face they belong too.

Duplicate the vertex and assign different normal to each one. Two vertices with different normals are not the same vertex.
thanks everyone!

This topic is closed to new replies.

Advertisement