Changeset 3354
- Timestamp:
- 04/14/09 17:20:50 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SampleGenerator.cpp
r3343 r3354 248 248 for (int i = 0; i < mNumSamples; ++ i) 249 249 { 250 //x[0] = RandomValue(0, 1); x[1] = RandomValue(0, 1);251 mHalton->GetNext(x);250 x[0] = RandomValue(0, 1); x[1] = RandomValue(0, 1); 251 //mHalton->GetNext(x); 252 252 253 253 const float a = 2.0f * M_PI * x[0]; -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h
r3353 r3354 11 11 //#define NUM_SAMPLES 16 12 12 //#define NUM_SAMPLES 24 13 #define NUM_SAMPLES 3213 #define NUM_SAMPLES 8 14 14 15 15 //#define MIN_SAMPLES 48 … … 32 32 //#define MIN_DEPTH_DIFF 5e-3f 33 33 //#define MIN_DEPTH_DIFF 1e-3f 34 #define MIN_DEPTH_DIFF 1e- 9f34 #define MIN_DEPTH_DIFF 1e-3f 35 35 #define DYNAMIC_OBJECTS_THRESHOLD 1e-8f 36 36 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/combineSsaoSep.cg
r3353 r3354 194 194 } 195 195 196 197 196 return OUT; 198 197 } … … 251 250 252 251 //OUT.illum_col.xyz = float3(ao.w * 5e-1f, 0, 0); 253 //OUT.illum_col.xyz = float3(ao.z * 1e- 1f);254 //OUT.illum_col.xyz = float3(ao.y * 1e- 1f);//, 0, 0);252 //OUT.illum_col.xyz = float3(ao.z * 1e-3f); 253 //OUT.illum_col.xyz = float3(ao.y * 1e-3f);x 255 254 //OUT.illum_col.xyz = ao.xyz; 256 255 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r3353 r3354 148 148 149 149 //w = ComputeConvergence(oldTex, oldTexCoords, float2(1024.0f, 768.0f)); 150 w = oldPixel.y;150 w = oldPixel.y; 151 151 idx = floor(oldPixel.z); 152 152 //idx = oldPixel.z; 153 153 } 154 154 else 155 155 { 156 w = 0.0f;156 w = .0f; 157 157 idx = .0f; 158 158 } … … 346 346 const float2 ssaoOffset = 347 347 tex2Dlod(samples, float4((0.5f + i + oldIdx) / NUM_PRECOMPUTED_SAMPLES, 0.5f, .0f, .0f)).xy; 348 348 349 349 350 //////////////////// … … 500 501 501 502 #ifdef PERFORMANCE_TEST 502 503 //#if 0 503 504 float3 diffVec = tex2Dlod(attribsTex, float4(IN.texCoord, 0, 0)).xyz; 504 505 … … 522 523 523 524 float oldWeight = temporalVals.y; 524 //float oldIdx = temporalCoherence > 1 ? temporalVals.z : 0;525 float oldIdx = temporalVals.z;525 float oldIdx = temporalCoherence > 1 ? temporalVals.z : 0; 526 //float oldIdx = temporalVals.z; 526 527 527 528 #else 528 529 530 const float3 diffVec = float3(.0f); 529 531 const bool isMovingObject = false; 530 532 const float oldSsao = 0; 531 533 532 534 float oldWeight = 0; 533 float oldIdx = 0;535 float oldIdx = 0; 534 536 535 537 #endif … … 555 557 else 556 558 { 557 ao = float3(1.0f , 1.0f, 1.0f);559 ao = float3(1.0f); 558 560 } 559 561 … … 579 581 { 580 582 oldWeight = .0f; 581 oldIdx = .0f;583 oldIdx = .0f; 582 584 } 583 585 else if (ao.y > partlyResetThres) … … 585 587 oldWeight = min(oldWeight, 4.0f * newWeight); 586 588 //oldWeight = .0f; 587 //oldIdx = .0f;589 //oldIdx = .0f; 588 590 } 589 591 }
Note: See TracChangeset
for help on using the changeset viewer.