Ignore:
Timestamp:
08/31/08 17:18:37 (16 years ago)
Author:
mattausch
Message:

view vector interpolation finally working

File:
1 edited

Legend:

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

    r2889 r2890  
    9494        } 
    9595 
    96         //return max(0.0f, 1.0f - total_ao); 
    97         return saturate(dot(currentViewDir, currentNormal)); 
     96        return max(0.0f, 1.0f - total_ao); 
     97        //return saturate(dot(currentViewDir, currentNormal)); 
    9898} 
    9999 
     
    125125        /// the current view direction 
    126126        //float3 viewDir = normalize(IN.view * 2.0f - float3(1.0f)); 
    127         float3 viewDir = IN.view; 
     127        float3 viewDir = normalize(IN.view); 
    128128 
    129129        // the current world position 
Note: See TracChangeset for help on using the changeset viewer.