Sign in to follow this  
FireViper

Masking and dept problems

Recommended Posts

I've followed Nehe's masking tutorial, and got it to work just fine, but in the rendering part, you have to disable GL_DEPTH_TEST. So when I render the screen, the mask image always overlaps all other polygons. But if I dont disable GL_DEPTH_TEST, the mask dont work. Any idea how I can fix this?

Share this post


Link to post
Share on other sites
The program makes the masked object first to last and last shall be first.

So if you make the masked object the first thing in your Rendering code, it will be on the very bottom, yet if it is the last thing drawn; it shall be on top.

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