Depth buffer question
I'm sure I did this before somehow, but can't seem to find the code anymore.. Basically I want to render sprites amongst 3d objects (basically it's a GTA 1 or 2 clone) so I wish to turn off the depth checking when compared to other sprites, but want them to be obscured by the 3d objects. What I need to do is turn off depth-writing, but leave the reading in there. Can anyone enlighten me please? :)
glDepthMask(false);
[size="1"][[size="1"]TriangularPixels.com[size="1"]] [[size="1"]Rescue Squad[size="1"]] [[size="1"]Snowman Village[size="1"]] [[size="1"]Growth Spurt[size="1"]]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement