Ignore:
Timestamp:
08/27/08 15:09:04 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2867 r2873  
    101101 
    102102pixel frag(fragin IN,  
    103            uniform float maxDepth,  
    104            uniform float4 ambient,  
    105            uniform float4 diffuse) 
     103                   uniform float maxDepth,  
     104                   uniform float4 ambient,  
     105                   uniform float4 diffuse 
     106                   ) 
    106107{ 
    107108        pixel pix; 
     
    109110        pix.col = diffuse; 
    110111        pix.pos = IN.worldPos * maxDepth; 
     112 
    111113        //pix.norm.xyz = IN.normal * 0.5f + float3(0.5f); 
    112114        pix.norm.xyz = IN.normal; 
     115         
    113116        // hack: squeeze some information about the ambient term into the target 
    114117        pix.norm.w = ambient.x; 
    115118        pix.pos.w = IN.mypos.w; 
     119         
     120        // the projected depth 
    116121        pix.col.w = IN.mypos.z / IN.mypos.w; 
    117122 
Note: See TracChangeset for help on using the changeset viewer.