source:
GTP/trunk/Lib/Vis/Preprocessing/src/depth_peeling2d.cg
@
1969
Revision 1969, 302 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, |
[1969] | 4 | uniform float invTexWidth, |
[1964] | 5 | uniform float stepSize, |
[1949] | 6 | uniform sampler2D depthTex) : COLOR |
[1935] | 7 | { |
[1969] | 8 | float zold = tex2D(depthTex, pos.xy * invTexWidth); |
[1949] | 9 | |
[1964] | 10 | if(pos.z < (zold + stepSize)) |
[1935] | 11 | discard; |
12 | else; | |
13 | ||
14 | return col; | |
15 | ||
[1949] | 16 | } |
Note: See TracBrowser
for help on using the repository browser.