Is there a way to draw everywhere where never has been drawn to (this frame) ?
For example: I´d like to draw a fullscreen quad, but only where no other geomtry has been drawn. I know i can do that by first drawing the quad (depth test disabled) and then drawing the geometry, but this hits hard on fillrate.
So is there a way? glDepthFunc doesn´t seem to provide this.
Why not draw the stuff that’s going to where there haven’t been anything drawn first? Draw that first with depth test disabled and draw the rest of the scene on top of that.
I considered that, but chickened out because I’m sure there are drivers that wouldn’t do the ritght thing in that situation ;-)[/b]
Jon,
If they don’t, it’s a bug that they should fix.
You’re right of course that allowing a little slop (avoiding a singular matrix
in this case) is the safe bet, but we shouldn’t let the driver folks get away with too much.