Ignore:
Timestamp:
02/12/09 18:28:32 (15 years ago)
Author:
mattausch
Message:

found error with border

File:
1 edited

Legend:

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

    r3305 r3306  
    166166 
    167167        OUT.illum_col = tex2Dlod(ssaoTex, float4(IN.texCoord, 0, 0)); 
    168         // just take unfiltered convergence in current pixel 
     168        // compute minimal convergence for savetly reasons, write it out 
    169169        const float convergence = ComputeConvergenceHalfRes(ssaoTex, IN.texCoord, res * 0.5f); 
     170        OUT.illum_col.y = convergence; 
    170171 
    171172        const float2 xyStep = float2(1.0f / res.x, 0); 
     
    221222        if (depth < DEPTH_THRESHOLD) 
    222223        { 
    223                 OUT.illum_col.xyz = col.xyz * max(2e-2f, 1.0f - ao.x); 
    224                 //OUT.illum_col.xyz = col.xyz * ao.x; 
     224                //OUT.illum_col.xyz = col.xyz * max(2e-2f, 1.0f - ao.x); 
     225                OUT.illum_col.xyz = max(2e-2f, 1.0f - ao.x); 
    225226        } 
    226227        else 
Note: See TracChangeset for help on using the changeset viewer.