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/ssao.cg

    r3304 r3306  
    295295                // to have any influence in the current or last frame 
    296296                const float tooFarAway = step(0.5f, lengthToSample - changeFactor); 
    297                 validSamples = max(validSamples, (1.0f - tooFarAway) * pixelValid * step(-0.1f, cosAngle)); 
     297                //validSamples = max(validSamples, (1.0f - tooFarAway) * pixelValid * step(-0.1f, cosAngle)); 
     298                validSamples = max(validSamples, pixelValid); 
    298299 
    299300#ifdef USE_GTX 
     
    415416 
    416417        // completely reset the ao in this pixel 
    417         const float completelyResetThres = 4.0f; 
     418        const float completelyResetThres = 20.0f; 
    418419        // don't fully reset the ao in this pixel, but give low weight to old solution 
    419420        const float partlyResetThres = 1.0f; 
    420421         
    421         if (!isMovingObject) 
     422        if (1)//!isMovingObject) 
    422423        { 
    423424                if (ao.y > completelyResetThres)  
Note: See TracChangeset for help on using the changeset viewer.