I have a cube rendered using indices on 8 points:
float cubev[120] = { -2.0f,-2.0f,2.0f, 2.0f,-2.0f,2.0f, -2.0f,2.0f,2.0f, 2.0f,2.0f,2.0f, -2.0f,2.0f,-2.0f, 2.0f,2.0f,-2.0f, -2.0f,-2.0f,-2.0f, 2.0f,-2.0f,-2.0f};
GLuint cubei[] = { 0,1,3,2, 2,3,5,4, 4,5,7,6, 6,7,1,0, 6,0,2,4, 1,7,5,2 };
I left space in cubev to assign 24*4 RGBA vertices – in 6 sets of four, one set to each side.
Pretty clearly, tho, only the first two sets count (8 vertices), meaning they are applied to the points in the ARRAY_BUFFER and not according to the points as ordered in the ELEMENT_ARRAY_BUFFER.
I presume that means I cannot duplicate points using an index unless I want the object to be a uniform color?
Or am I missing something?