quote:Original post by Raduprv
Well, it''s always a good idea to draw the GUI last, Z test disabled. It''s safer, because you don''t want the have parts of the GUI covered by a clif or something (by accident).
yep, but at the same time the gui is usually cheap and simple and might hide a lot of multitextured fancy shaded geometry. not to mention that drawing it last automatically wastes more fillrate. i would expect drawing in ortho mode making it easy to assure the gui is ending up with 0 in the z-buffer. using less instead of less-equal should prevent anything sticking through it.
of course clipping early would be even better for parts completely covered by the gui. yes, i know.. performance junky.