- Timestamp:
- 10/02/08 10:05:06 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/mrt.cg
r2984 r2988 95 95 // hack: squeeze some information about ambient into the texture 96 96 //pix.col.w = glstate.material.emission.x; 97 pix.col.w = length( currentPos - IN.worldPos);97 pix.col.w = length((currentPos - IN.worldPos) * maxDepth); 98 98 99 99 return pix; … … 118 118 // hack: squeeze some information about the ambient term into the target 119 119 //pix.col.w = glstate.material.emission.x; 120 pix.col.w = length( currentPos - IN.worldPos);120 pix.col.w = length((currentPos - IN.worldPos) * maxDepth); 121 121 122 122 return pix;
Note: See TracChangeset
for help on using the changeset viewer.