Ignore:
Timestamp:
08/27/08 16:14:10 (16 years ago)
Author:
mattausch
Message:

implemented glob-illum solution

Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
Files:
2 edited

Legend:

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

    r2873 r2874  
    6363        float3 normal = normalize(norm.xyz);// * 2.0f - float4(1.0f)); 
    6464 
    65         float4 col = shade(IN, color, position, normal.xyz, amb); 
     65        float4 col = shade(IN, color, position, normal, amb); 
    6666         
    6767        //OUT.color = float4(1.0f); 
    6868        OUT.color = col; 
     69        OUT.color.w = color.w; 
    6970 
    7071        return OUT; 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg

    r2873 r2874  
    151151        realPos.w = 1.0f; 
    152152 
     153        // reproject 
    153154        float4 oldPos = mul(oldModelViewProj, realPos); 
    154155 
     
    176177        OUT.illum_col.w = currentDepth; 
    177178 
    178          
     179        //OUT.combined_col = float4(newDepth / oldDepth * 100, 0, 0, 1) ; 
     180        //OUT.combined_col = float4(newDepth, 0, 0, 1) ; 
    179181 
    180182        return OUT; 
Note: See TracChangeset for help on using the changeset viewer.