This topic is now archived and is closed to further replies.



Recommended Posts

NeoGL    122
glEnable(GL_DEPTH_TEST); //that''s it you got z-buffering. !!

glDepthFunc(GL_LESS) //this is by default, so don''t worry about it.
if you want your depth buffer to act so that the nearer objects (rather then the farther objects) don''t get drawn then pass the above GL_GREATER. you get the idea...

Share this post

Link to post
Share on other sites