- Timestamp:
- 11/30/08 20:41:23 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r3197 r3198 292 292 float3 dirSample = samplePos - centerPosition; 293 293 294 const float sqrLen = max(SqrLen(dirSample), 1e-3f); 295 //const float lengthToSample = max(length(dirSample), 1e-2f); 294 const float sqrLen = max(SqrLen(dirSample), 1e-2f); 296 295 const float lengthToSample = sqrt(sqrLen); 297 296 … … 395 394 396 395 // cull background note: this should be done with the stencil buffer 396 //if (SqrLen(diffVec < 1e6f) && (eyeSpaceDepth < 1e10f)) 397 397 if (eyeSpaceDepth < 1e10f) 398 398 { … … 402 402 else 403 403 { 404 ao = float3(1.0f, .0f,.0f);404 ao = float3(1.0f, 1.0f, 1.0f); 405 405 } 406 406
Note: See TracChangeset
for help on using the changeset viewer.