• Advertisement
Sign in to follow this  

depth testing but no depth writing

This topic is 4072 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How can i enable depth testing but deactivate depth writing? with gl_disable i can only deactivate depth testing... Thanks!

Share this post


Link to post
Share on other sites
Advertisement
glDepthMask(GL_FALSE);

will turn depth writing off, and GL_TRUE will turn it back on.

Regards
elFarto

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement