- Timestamp:
- 02/12/09 18:28:32 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r3304 r3306 295 295 // to have any influence in the current or last frame 296 296 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); 298 299 299 300 #ifdef USE_GTX … … 415 416 416 417 // completely reset the ao in this pixel 417 const float completelyResetThres = 4.0f;418 const float completelyResetThres = 20.0f; 418 419 // don't fully reset the ao in this pixel, but give low weight to old solution 419 420 const float partlyResetThres = 1.0f; 420 421 421 if ( !isMovingObject)422 if (1)//!isMovingObject) 422 423 { 423 424 if (ao.y > completelyResetThres)
Note: See TracChangeset
for help on using the changeset viewer.