source: GTP/trunk/Lib/Vis/Preprocessing/src/depth_peeling.cg @ 1940

Revision 1940, 233 bytes checked in by mattausch, 17 years ago (diff)
Line 
1
2float3 main(in float4 col : COL0,
3       in float3 pos : WPOS,
4        uniform samplerRECT depthTex) : COLOR
5{
6   float zold = texRECT(depthTex, pos.xy);
7   if(pos.z < (zold + .000001))
8      discard;
9   else;
10
11   return col;
12   
13}
Note: See TracBrowser for help on using the repository browser.