Ignore:
Timestamp:
08/31/08 17:09:46 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2888 r2889  
    1111         // normalized screen position 
    1212        float4 pos: WPOS; 
    13         float4 texCoord: TEXCOORD0;  
    14         float3 view: COLOR0; 
     13        float2 texCoord: TEXCOORD0;  
     14        float3 view: TEXCOORD1; 
    1515}; 
    1616 
     
    9595 
    9696        //return max(0.0f, 1.0f - total_ao); 
    97         //return saturate(dot(currentViewDir, currentNormal)); 
    98         return saturate(dot(currentViewDir, float3(0, -1, 0))); 
     97        return saturate(dot(currentViewDir, currentNormal)); 
    9998} 
    10099 
     
    125124        float3 normal = normalize(norm.xyz); 
    126125        /// the current view direction 
    127         float3 viewDir = normalize(IN.view * 2.0f - float3(1.0f)); 
     126        //float3 viewDir = normalize(IN.view * 2.0f - float3(1.0f)); 
     127        float3 viewDir = IN.view; 
    128128 
    129129        // the current world position 
     
    166166        } 
    167167 
     168        //OUT.illum_col.xyz = viewDir; 
    168169        OUT.illum_col.w = currentDepth; 
    169170 
Note: See TracChangeset for help on using the changeset viewer.