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/deferred.cg

    r2868 r2873  
    4242 
    4343 
    44 /** The mrt shader for standard rendering 
    45 */ 
    46 pixel main2(fragment IN,  
    47                    uniform sampler2D colors, 
    48                    uniform sampler2D positions, 
    49                    uniform sampler2D normals 
    50                    ) 
    51 { 
    52         pixel OUT; 
    53  
    54         float4 norm = tex2D(normals, IN.texCoord.xy); 
    55         float4 color = tex2D(colors, IN.texCoord.xy); 
    56         float4 position = tex2D(positions, IN.texCoord.xy); 
    57  
    58         // an ambient color term 
    59         float amb = norm.w; 
    60  
    61         // expand normal 
    62         float3 normal = normalize(norm.xyz);// * 2.0f - float4(1.0f)); 
    63  
    64         float4 col = shade(IN, color, position, normal, amb); 
    65          
    66         //OUT.color = float4(1.0f); 
    67         OUT.color = col; 
    68         OUT.color.w = color.w; 
    69  
    70         return OUT; 
    71 } 
    7244 
    7345/** The mrt shader for standard rendering 
Note: See TracChangeset for help on using the changeset viewer.