Ignore:
Timestamp:
09/10/08 17:35:26 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2911 r2928  
    153153        return OUT; 
    154154} 
     155 
     156 
     157/** The mrt shader for standard rendering 
     158*/ 
     159pixel main_shadow_debug(fragment IN,  
     160                                                uniform sampler2D shadowMap, 
     161                                                uniform sampler2D colorTex, 
     162                                                uniform float4x4 shadowMatrix) 
     163{ 
     164        pixel OUT; 
     165#if 0 
     166        // visualize depth 
     167        OUT.color = tex2Dlod(colorTex, float4(IN.texCoord.xy, 0, 0)); 
     168#else 
     169        float4 col; 
     170        col = tex2Dlod(shadowMap, float4(IN.texCoord.xy, 0, 0)); 
     171        OUT.color = float4(col.z / col.w, 0, 0, 1); 
     172#endif 
     173        return OUT; 
     174} 
Note: See TracChangeset for help on using the changeset viewer.