Sign in to follow this  
Alkiem

how to know depth test result

Recommended Posts

Is it possible to know the depth test result after rendering a triangle, ie: in the display ... glBegin(GL_TRIANGLES); ... glEnd(); ->i want to know at this moment if the triangle i have just rendered is visible (partially) or not (depending on the result of the depth test). Or is it possible to know the depth test result only on a vertex? Thanks in advance.

Share this post


Link to post
Share on other sites
Thanks a lot, it works fine. For those who wants an example code using it, go to http://www.g-truc.net/tuts.html#pack1 (it's a french site)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this