xernobyl

OpenGL 3.* and Geometry Shaders

Discussion created by xernobyl on Feb 18, 2010
Latest reply on Mar 26, 2010 by erwincoumans

When I declare the shader inputs/varyings as "in vec3 a[];" I get an "array must be redeclared with a size before being indexed with a variable" error, and with "in vec3 a[gl_VerticesIn];" I get an array size mismatch (3 vertexes, triangles, when I want line adjacency, 4 vertexes).

What's the correct order to compile/assign the shaders to a program in OpenGL if I want to use Geometry Shaders?

Outcomes