Advertisement

Depth buffer question

Started by October 28, 2004 04:36 PM
1 comment, last by KoalaGerch 20 years, 4 months ago
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);
Advertisement
Excellent :)
Thanks very much :)

This topic is closed to new replies.

Advertisement