- Timestamp:
- 04/12/09 23:24:55 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r3340 r3341 128 128 float w; 129 129 float idx; 130 130 131 131 132 ////////////// … … 433 434 434 435 #endif // PERFORMANCE_TEST 435 436 436 } 437 437 … … 487 487 const float4 eyeSpacePos = float4(-viewDir * eyeSpaceDepth, 1.0f); 488 488 489 489 490 //////////////// 490 491 //-- calculcate the current projected posiion (also used for next frame) … … 522 523 523 524 float oldWeight = temporalVals.y; 524 float oldIdx = temporalCoherence > 1 ? temporalVals.z : 0;525 float oldIdx = /*temporalCoherence > 1 ? */temporalVals.z/* : 0*/; 525 526 526 527 #else … … 599 600 600 601 OUT.illum_col.y = combinedWeight; 601 OUT.illum_col.z = oldIdx + newWeight; // the new index602 OUT.illum_col.z = oldIdx + 8;//newWeight; // the new index 602 603 OUT.illum_col.w = eyeSpaceDepth; 603 604
Note: See TracChangeset
for help on using the changeset viewer.