How do I pass values to a vertex shader's attribute array in OpenGL?

Viewed 807

In my vertex shader, I have

in float data[6];

That means that if I have 100 vertices, I want to pass 600 floats. glVertexAttribPointer only supports sizes up to 4. If I use size 1, then will it automatically pick up the 6 elements?

1 Answers
Related