Changeset 540 for trunk/VUT/GtpVisibilityPreprocessor/src/dual_depth.cg
- Timestamp:
- 01/15/06 04:23:51 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/dual_depth.cg
r532 r540 15 15 { 16 16 pixel OUT; 17 17 OUT.color = IN.color0; 18 18 19 // the depth buffer has to be compared to the current depth 19 20 float4 depth = tex2D(depthMap, IN.depthTexCoord.xy); … … 22 23 // reject by alpha test 23 24 if (test < depth.x) 25 { 24 26 OUT.color.w = 0; 25 27 // OUT.color.y += 0.5; 28 } 29 26 30 return OUT; 27 31 }
Note: See TracChangeset
for help on using the changeset viewer.