Ignore:
Timestamp:
10/01/08 00:40:59 (16 years ago)
Author:
mattausch
Message:

problematic: merging

File:
1 edited

Legend:

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

    r2979 r2982  
    157157        float newWeight; 
    158158 
     159        float newNumSamples = ao.y; 
     160 
    159161        if (//(temporalCoherence > 0) && 
    160162                (tex.x >= 0.0f) && (tex.x < 1.0f) &&  
    161163                (tex.y >= 0.0f) && (tex.y < 1.0f) &&  
    162                 (abs(depthDif) < 1e-3f)  
     164                (abs(depthDif) < 1e-4f)  
    163165                // check if visibility changed in the surrounding area: 
    164166                // then we have to recompute 
    165                 && (oldNumSamples > ao.y - 1.5f)  
     167                && ((newWeight < 10) || (oldNumSamples > 0.9f * newNumSamples)) 
     168                //&& (oldAvgDepth / newAvgDepth > 0.99) 
    166169                ) 
    167170        { 
     
    173176        } 
    174177        else 
    175         { 
     178        {        
    176179                OUT.illum_col.xy = ao.xy; 
    177180                newWeight = 0; 
Note: See TracChangeset for help on using the changeset viewer.