Write Image To Depth Buffer: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
Marco (talk | contribs)
No edit summary
(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); .