Ignore:
Timestamp:
08/26/08 13:30:31 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2866 r2867  
    7777        // save color in first render target 
    7878        pix.col = (ambient + diffuse) * tex2D(tex, IN.texCoord.xy); 
     79         
    7980        // save world position in second rt 
    8081        pix.pos = IN.worldPos * maxDepth; 
    8182        // save normal in third rt 
    82         pix.norm.xyz = IN.normal * 0.5f + 0.5f; 
     83        //pix.norm.xyz = IN.normal * 0.5f + 0.5f; 
     84        pix.norm.xyz = IN.normal; 
    8385 
    8486        // hack: squeeze some information about ambient into the texture 
     
    107109        pix.col = diffuse; 
    108110        pix.pos = IN.worldPos * maxDepth; 
    109         pix.norm.xyz = IN.normal * 0.5f + float3(0.5f); 
    110         // hack: squeeze some information about ambient into the texture 
     111        //pix.norm.xyz = IN.normal * 0.5f + float3(0.5f); 
     112        pix.norm.xyz = IN.normal; 
     113        // hack: squeeze some information about the ambient term into the target 
    111114        pix.norm.w = ambient.x; 
    112115        pix.pos.w = IN.mypos.w; 
Note: See TracChangeset for help on using the changeset viewer.