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

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