Hi folks,
I have a small problem with VBOs,
for example, if we want to render a simple BOX the VBO syntax requires something like
GLfloat vertices[] = {1,1,1, -1,1,1, -1,-1,1, 1,-1,1,
1,-1,-1, -1,-1,-1, -1,1,-1, 1,1,-1};
GLfloat normals[] = {0.577, 0.577, 0.577, -0.577, 0.577, 0.577, -0.577, -0.577, 0.577, 0.577, -0.577, 0.577,
0.577, -0.577, -0.577, -0.577, -0.577, -0.577, -0.577, 0.577, -0.577, 0.577, 0.577, -0.577};
GLfloat colors[] = {1,1,1, 1,1,0, 1,0,0, 1,0,1,
0,0,1, 0,0,0, 0,1,0, 0,1,1};
GLushort indices[] = {0, 1, 2, 0, 2, 3,
0, 3, 4, 0, 4, 7,
0, 7, 6, 0, 6, 1,
1, 6, 5, 1, 5, 2,
5, 4, 3, 5, 3, 2,
4, 5, 6, 4, 6, 7};
observe that, for each vertex there is a normal, i want to use an only normal for each facet (triangle). Is it possible?
Thanks in advance,
Yalmar