- Timestamp:
- 10/01/08 00:40:59 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r2979 r2982 157 157 float newWeight; 158 158 159 float newNumSamples = ao.y; 160 159 161 if (//(temporalCoherence > 0) && 160 162 (tex.x >= 0.0f) && (tex.x < 1.0f) && 161 163 (tex.y >= 0.0f) && (tex.y < 1.0f) && 162 (abs(depthDif) < 1e- 3f)164 (abs(depthDif) < 1e-4f) 163 165 // check if visibility changed in the surrounding area: 164 166 // then we have to recompute 165 && (oldNumSamples > ao.y - 1.5f) 167 && ((newWeight < 10) || (oldNumSamples > 0.9f * newNumSamples)) 168 //&& (oldAvgDepth / newAvgDepth > 0.99) 166 169 ) 167 170 { … … 173 176 } 174 177 else 175 { 178 { 176 179 OUT.illum_col.xy = ao.xy; 177 180 newWeight = 0;
Note: See TracChangeset
for help on using the changeset viewer.