float3 main(in float4 col : COL0, in float3 pos : WPOS, uniform samplerRECT depthTex) : COLOR { float zold = texRECT(depthTex, pos.xy); if(pos.z < (zold + .000001)) discard; else; return col; }