So I’ve spent the last couple of hours trying to get my geometry shader to recognize a vertex attribute.
This single line in the geometry shader makes a compilation error:
attribute float nodesizes;
And I get the error “OpenGL requires geometry inputs to be arrays”
What is then, the proper way to put attributes into geometry shaders?
aqnuep
2
It has to be an array declaration because geometry shader inputs are not vertices but primitives, which comprise of one or more vertices.
Maybe you should try this:
attribute float nodesizes[];
system
Closed
3
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.