Skip to main content
3 votes
Accepted

draw on cubemap with help of geometry shader each triangle covers each cubemap face (why??)

After trying everything possible I found my mistake: The shaders are fine, the only thing which is wrong is the frameBufferObject binding. To be honest, the texture to FBO binding. the only thing I ...
Thomas's user avatar
  • 1,309
2 votes
Accepted

Issue with declaring inputs to geometry shader?

The issue was that I declared out vec3 gModelPosition[] as an array in my geometry shader. It should have only been declared as a ...
Startec's user avatar
  • 781
2 votes
Accepted

Geometry Shader Not Working

So as @Thomas mentioned, the issue seems to be the fact that I was passing "GL_LINE_STRIP" instead of "GL_LINE_STRIP_ADJACENCY" to the glDrawArrays() call. Apparently, "...
TFamIdoing's user avatar
2 votes
Accepted

Opengl geometry shader input point to output point doesn't show any ouput

You are setting g_color after the vertex have been emitted so it will have no effect. EmitVertex() will emit the poition and ...
Grimmy's user avatar
  • 136
2 votes
Accepted

Is it possible to send Texture Buffer to shader dynamically?

These: glTexBuffer(GL_TEXTURE_BUFFER, GL_R32I, this->index_tbo); uniform samplerBuffer index_tex; Do not match. If the ...
Nicol Bolas's user avatar
  • 9,932
2 votes

Vector graphics output from shader program

In OpenGL, there are 6 different shader types: Vertex Shader Tesselation Control Shader Tesselation Evaluation Shader Geometry Shader Fragment Shader (Pixel) Compute Shader The first 5 are part of ...
wychmaster's user avatar
  • 1,251
1 vote

Generating the end caps of a cylinder using triangle strips for use in a geometry shader

If the end of your cylinder is convex, with vertices $V_0, V_1, V_2,...V_{N-1}$ then just replace your fan order (i.e. as above) with this strip $V_0, V_1, V_{N-1}, V_2, V_{N-2}, V_3...$, i.e. just ...
Simon F's user avatar
  • 4,306

Only top scored, non community-wiki answers of a minimum length are eligible