source: GTP/trunk/Lib/Vis/Preprocessing/src/depth_peeling2d.cg @ 1969

Revision 1969, 302 bytes checked in by mattausch, 18 years ago (diff)

global lines nearly useable!

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