Questions tagged [depth-map]
22 questions
3
votes
1 answer
What happens when GL_Depth is disabled
In my simulation I draw a bunch of rectangles with GL_TRIANGLE_STRIP inside of one draw call.
What will happen if I turn off GL_DEPTH_SORT? If all of the rectangles were stacked on top of themselves in a 2D screenspace sense would they always be in…

J.Doe
- 1,445
- 12
- 23
2
votes
0 answers
Do you have to clear the depth buffer each frame in OpenGL
I am trying to make it so that objects leave trails behind them and if an object is in the back and tries to draw over a previous trail it is transparent because of it.
The problem is whenever I do not GL_CLEAR the depth buffer after each frame the…

J.Doe
- 1,445
- 12
- 23