Ignore:
Timestamp:
02/12/09 10:39:53 (15 years ago)
Author:
mattausch
Message:

tried out scaling vs reduction of samples

File:
1 edited

Legend:

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

    r3301 r3304  
    145145        // filter up to a certain convergance value and leave out background (sky) by checking depth 
    146146        if (//(convergence < SSAO_CONVERGENCE_THRESHOLD) && 
    147                 (col.w < 1e10f)) 
     147                (col.w < DEPTH_THRESHOLD)) 
    148148        { 
    149149                const float distanceScale = 1.0f; 
     
    159159 
    160160        // just apply ssao if we are not in the sky 
    161         if (col.w < 1e10f) 
     161        if (col.w < DEPTH_THRESHOLD) 
     162        { 
    162163                OUT.illum_col.xyz = col.xyz * max(2e-2f, 1.0f - ao.x); 
    163164                //OUT.illum_col.xyz = col.xyz * ao.x; 
     165        } 
    164166        else 
     167        { 
    165168                OUT.illum_col.xyz = col.xyz; 
    166  
     169        } 
    167170 
    168171        //OUT.illum_col.xyz = float3(abs(ao.y * 1e2f), abs(ao.z * 1e2f), abs(ao.w * 1e2f)); 
     
    214217        // filter up to a certain convergance value and leave out background (sky) by checking depth 
    215218        if ((convergence < SSAO_CONVERGENCE_THRESHOLD) &&  
    216                 (col.w < 1e10f)) 
     219                (col.w < DEPTH_THRESHOLD)) 
    217220        { 
    218221                const float distanceScale = 1.0f; 
     
    229232 
    230233        // just apply ssao if we are not in the sky 
    231         if (col.w < 1e10f) 
     234        if (col.w < DEPTH_THRESHOLD) 
    232235        { 
    233236                OUT.illum_col.xyz = col.xyz * max(2e-2f, 1.0f - ao.x); 
Note: See TracChangeset for help on using the changeset viewer.