Does anyone know how to retrieve the depth buffer data from openGL?
Thanks in advance.
–Matt
Does anyone know how to retrieve the depth buffer data from openGL?
Thanks in advance.
–Matt
You have to use glReadPixels (), with format GL_DEPTH_COMPONENT
Thanks man, I figured it out like 5 minutes after I posted the question. I just hadn’t noticed the GL_DEPTH_COMPONENT flag before.
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.