How do you disable writes to the depth buffer so that things are still dependent upon the depth buffer to be drawn, but don’t draw themselves into it? I’ve seen this discussed before, but I couldn’t be sure as to how it was done.
-pATCheS
How do you disable writes to the depth buffer so that things are still dependent upon the depth buffer to be drawn, but don’t draw themselves into it? I’ve seen this discussed before, but I couldn’t be sure as to how it was done.
-pATCheS
To control whether the depth buffer is writable, use glDepthMask(); if you pass GL_FALSE as the argument, the buffer becomes read-only, whereas GL_TRUE restores the normal, writable operation.