source: GTP/trunk/Lib/Vis/Preprocessing/src/depth_peelingRect.cg @ 1964

Revision 1964, 260 bytes checked in by mattausch, 17 years ago (diff)

worked on global lines

Line 
1
2float3 main(in float4 col : COL0,
3            in float3 pos : WPOS,
4            uniform float stepSize,
5            uniform samplerRect depthTex) : COLOR
6{
7   float zold = texRect(depthTex, pos.xy);
8
9   if(pos.z < (zold + stepSize))
10      discard;
11   else;
12
13   return col;
14   
15}
Note: See TracBrowser for help on using the repository browser.