- Timestamp:
- 04/13/09 12:16:29 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r3343 r3344 377 377 378 378 const float minDist = 1e-6f; 379 const float delta= 1e-3f;379 const float eps = 1e-3f; 380 380 381 381 const float lengthToSample = length(dirSample); 382 const float sampleWeight = 1.0f / (lengthToSample + delta);382 const float sampleWeight = 1.0f / max(lengthToSample, eps); 383 383 384 384 dirSample /= max(length(dirSample), minDist); // normalize … … 599 599 600 600 OUT.illum_col.y = combinedWeight; 601 OUT.illum_col.z = oldIdx + 8;//newWeight; // the new index601 OUT.illum_col.z = oldIdx + newWeight; // the new index 602 602 OUT.illum_col.w = eyeSpaceDepth; 603 603
Note: See TracChangeset
for help on using the changeset viewer.