So I've been trying for a while now, to pass a vertex attribute array into the geometry shader. It is an array of float (where the attribute per vertex is just a float value)
Now, when I put this in the geometry shader:
attribute float nodesizes;
The shader compiler complains:
OpenGL requires geometry inputs to be arrays
How do I exactly pass it along?
Also, here's my code for putting the vertex attrib:
glBindAttribLocation(programid, 1, "nodesizes");
glVertexAttribPointer(1, 1, GL_FLOAT, GL_FALSE, 0, array);
glEnableVertexAttribArray(1);
Am I doing something wrong?
glBindAttribLocation
before linking the program to have an effect, as your code suggests something different. – Divulsion