Ignore:
Timestamp:
10/02/08 10:05:06 (16 years ago)
Author:
mattausch
Message:

eye linear depth not working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/mrt.cg

    r2984 r2988  
    9595        // hack: squeeze some information about ambient into the texture 
    9696        //pix.col.w = glstate.material.emission.x; 
    97         pix.col.w = length(currentPos - IN.worldPos); 
     97        pix.col.w = length((currentPos - IN.worldPos) * maxDepth); 
    9898 
    9999        return pix; 
     
    118118        // hack: squeeze some information about the ambient term into the target 
    119119        //pix.col.w = glstate.material.emission.x; 
    120         pix.col.w = length(currentPos - IN.worldPos); 
     120        pix.col.w = length((currentPos - IN.worldPos) * maxDepth); 
    121121 
    122122        return pix; 
Note: See TracChangeset for help on using the changeset viewer.