Ignore:
Timestamp:
11/30/08 20:41:23 (16 years ago)
Author:
mattausch
Message:

removed some visual bugs (trees against sky), flickering much better now

File:
1 edited

Legend:

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

    r3197 r3198  
    292292                float3 dirSample = samplePos - centerPosition; 
    293293 
    294                 const float sqrLen = max(SqrLen(dirSample), 1e-3f); 
    295                 //const float lengthToSample = max(length(dirSample), 1e-2f); 
     294                const float sqrLen = max(SqrLen(dirSample), 1e-2f); 
    296295                const float lengthToSample = sqrt(sqrLen); 
    297296 
     
    395394 
    396395        // cull background note: this should be done with the stencil buffer 
     396        //if (SqrLen(diffVec < 1e6f) && (eyeSpaceDepth < 1e10f)) 
    397397        if (eyeSpaceDepth < 1e10f) 
    398398        { 
     
    402402        else 
    403403        { 
    404                  ao = float3(1.0f, .0f, .0f); 
     404                 ao = float3(1.0f, 1.0f, 1.0f); 
    405405        } 
    406406 
Note: See TracChangeset for help on using the changeset viewer.