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