Ignore:
Timestamp:
02/16/09 18:02:02 (15 years ago)
Author:
mattausch
Message:

reverted to old sampling scheme

File:
1 edited

Legend:

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

    r3313 r3314  
    294294                // we check if the sample could have been near enough to the current pixel  
    295295                // to have any influence in the current or last frame 
     296#if 0 
    296297                const float tooFarAway = step(0.5f, lengthToSample - changeFactor); 
    297                 //validSamples = max(validSamples, (1.0f - tooFarAway) * pixelValid * step(-0.1f, cosAngle)); 
     298                validSamples = max(validSamples, (1.0f - tooFarAway) * pixelValid * step(-0.1f, cosAngle)); 
     299#else 
    298300                validSamples = max(validSamples, pixelValid); 
     301#endif 
    299302 
    300303#ifdef USE_GTX 
     
    420423        const float partlyResetThres = 1.0f; 
    421424         
    422         if (1)//!isMovingObject) 
     425        if (!isMovingObject) 
    423426        { 
    424427                if (ao.y > completelyResetThres)  
Note: See TracChangeset for help on using the changeset viewer.