- Timestamp:
- 04/13/09 17:56:45 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r3345 r3346 148 148 149 149 //w = ComputeConvergence(oldTex, oldTexCoords, float2(1024.0f, 768.0f)); 150 w = floor(oldPixel.y);150 //w = floor(oldPixel.y); 151 151 //w = oldPixel.y; 152 idx = floor(oldPixel. z);152 idx = floor(oldPixel.y); 153 153 } 154 154 else … … 521 521 const float oldSsao = temporalVals.x; 522 522 523 float oldIdx = temporalCoherence > 1 ? temporalVals.y : .0f; 523 //float oldIdx = temporalCoherence > 1 ? temporalVals.y : .0f; 524 float oldIdx = temporalVals.y; 524 525 //float oldWeight = temporalVals.y; 525 526 float oldWeight = clamp(oldIdx, 0, temporalCoherence); … … 583 584 else if (ao.y > partlyResetThres) 584 585 { 585 oldWeight = min(oldWeight, 4.0f * NUM_SAMPLES); oldIdx = oldWeight;586 //oldWeight = min(oldWeight, 4.0f * NUM_SAMPLES); oldIdx = oldWeight; 586 587 //oldWeight = .0f; oldIdx = .0f; 587 588 }
Note: See TracChangeset
for help on using the changeset viewer.