Is there any possibility of exporting from geometry shader only triangles instead triangle strips? This enables some interesting possibilities. OpenGL 3.3.
glProgramParameteriARB(mVoxelShd, GL_GEOMETRY_OUTPUT_TYPE_ARB, GL_TRIANGLE_STRIP);
Specifies witch output mode does the shader. And if I try:
glProgramParameteriARB(mVoxelShd, GL_GEOMETRY_OUTPUT_TYPE_ARB, GL_TRIANGLES);
It compiles and works fine, but it manifests identically like triangle strips.
Also the GLSL language specification 3.3:
The layout qualifier identifiers for geometry shader outputs are
- layout-qualifier-id
- points
- line_strip
- triangle_strip
- max_vertices = integer-constant
Here it seems there is no "triangles".
glProgramParameteriARB
is not 3.3. That's not how 3.3 works; that's ARB_geometry_shader4, which is not the same thing as core Geometry Shaders. – Nicol Bolas