void main (out half4 color : COLOR, out float depth : DEPTH, uniform samplerRECT texColorMask, float4 wpos : WPOS) { if (texRECT(texColorMask, wpos.xy).x > 0) discard; depth = 0; }