Difference between revisions of "Write Image To Depth Buffer"

From OpenGL Wiki
Jump to: navigation, search
(No difference)

Revision as of 18:40, 30 April 2006

Use the glDrawPixels() command, with the format parameter set to GL_DEPTH_COMPONENT. You may want to mask off the color buffer when you do this, with a call to glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE); .