ml
01-05-2004, 11:44 PM
Hi,
I'm having some trouble with glColorMask(..) set to GL_FALSE for r,g,b & a.
It seems that when I set those to false, the depthbuffer isn't written to? I was under the impression that it should only mask writes to the colorbuffer.
I'm using it to discard certain polygons.
They shouldn't be visible in the framebuffer, but their depth should still be there, so that they can occlude other, 'visible' polygons.
Anyone care to help me out? I'm having trouble describing the problem, ask if anything is unclear http://www.opengl.org/discussion_boards/ubb/smile.gif
Edit: I used glLogicOp(GL_CLEAR) instead and it works as expected, but I still wonder about glColorMask-issues.
[This message has been edited by ml (edited 01-06-2004).]
I'm having some trouble with glColorMask(..) set to GL_FALSE for r,g,b & a.
It seems that when I set those to false, the depthbuffer isn't written to? I was under the impression that it should only mask writes to the colorbuffer.
I'm using it to discard certain polygons.
They shouldn't be visible in the framebuffer, but their depth should still be there, so that they can occlude other, 'visible' polygons.
Anyone care to help me out? I'm having trouble describing the problem, ask if anything is unclear http://www.opengl.org/discussion_boards/ubb/smile.gif
Edit: I used glLogicOp(GL_CLEAR) instead and it works as expected, but I still wonder about glColorMask-issues.
[This message has been edited by ml (edited 01-06-2004).]