I am trying to draw a cube with the VBO. Normally i can have 8 vertices and then using the index buffer, finally gldrawelement to do the final draw. The question is
if I am trying to using a face normal here. It seemed that I can not have an easy way to use the same index buffer to index the vertex array and the face normal?!
The only way i come up with is to duplicate the vertex from 8 to 36(12 triangles), so i repeat the vertex and normal where necessary. Is it sound silly or is therea better way to do this? The same idea apply to the texture as well. I think it is hard to use the same index buffer indexing both the pos array and tex co-ordiante array?
if I am trying to using a face normal here. It seemed that I can not have an easy way to use the same index buffer to index the vertex array and the face normal?!
The only way i come up with is to duplicate the vertex from 8 to 36(12 triangles), so i repeat the vertex and normal where necessary. Is it sound silly or is therea better way to do this? The same idea apply to the texture as well. I think it is hard to use the same index buffer indexing both the pos array and tex co-ordiante array?