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 ...
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 ...
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, "...
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 ...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
geometry-shader × 9opengl × 7
glsl × 3
c++ × 1
computational-geometry × 1
mesh × 1
webgl × 1
frame-buffer × 1
compatibility × 1