Changeset 1969 for GTP/trunk/Lib/Vis/Preprocessing/src/depth_peeling2d.cg
- Timestamp:
- 01/11/07 21:40:49 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/depth_peeling2d.cg
r1964 r1969 2 2 float3 main(in float4 col : COL0, 3 3 in float3 pos : WPOS, 4 uniform float texWidth,4 uniform float invTexWidth, 5 5 uniform float stepSize, 6 6 uniform sampler2D depthTex) : COLOR 7 7 { 8 float zold = tex2D(depthTex, pos.xy / texWidth);8 float zold = tex2D(depthTex, pos.xy * invTexWidth); 9 9 10 10 if(pos.z < (zold + stepSize))
Note: See TracChangeset
for help on using the changeset viewer.