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