Write Image To Depth Buffer: Difference between revisions
Jump to navigation
Jump to search
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); .