- Timestamp:
- 02/16/09 18:02:02 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r3313 r3314 294 294 // we check if the sample could have been near enough to the current pixel 295 295 // to have any influence in the current or last frame 296 #if 0 296 297 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 298 300 validSamples = max(validSamples, pixelValid); 301 #endif 299 302 300 303 #ifdef USE_GTX … … 420 423 const float partlyResetThres = 1.0f; 421 424 422 if ( 1)//!isMovingObject)425 if (!isMovingObject) 423 426 { 424 427 if (ao.y > completelyResetThres)
Note: See TracChangeset
for help on using the changeset viewer.