source:
GTP/trunk/Lib/Vis/Preprocessing/src/depth_peeling2d.cg
@
1950
Revision 1950, 230 bytes checked in by mattausch, 18 years ago (diff) |
---|
Rev | Line | |
---|---|---|
[1935] | 1 | |
2 | float3 main(in float4 col : COL0, | |
[1949] | 3 | in float3 pos : WPOS, |
4 | uniform sampler2D depthTex) : COLOR | |
[1935] | 5 | { |
[1949] | 6 | float zold = tex2D(depthTex, pos.xy / 256.0); |
7 | ||
8 | if(pos.z < (zold + 0.1)) | |
[1935] | 9 | discard; |
10 | else; | |
11 | ||
12 | return col; | |
13 | ||
[1949] | 14 | } |
Note: See TracBrowser
for help on using the repository browser.