6 Replies Latest reply on Mar 26, 2010 9:30 PM by erwincoumans

    OpenGL 3.* and Geometry Shaders

    xernobyl

      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?