Changeset 3341 for GTP/trunk/App/Demos
- Timestamp:
- 04/12/09 23:24:55 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredRenderer.cpp
r3340 r3341 811 811 attribsTex = fbo->GetColorBuffer(2)->GetTexture(); 812 812 813 813 814 ///////// 814 815 //-- flip flop between illumination buffers … … 845 846 { 846 847 CreateSampleTex(samples2, NUM_PRECOMPUTED_SAMPLES); 848 cout<<"here34"<<endl; 847 849 } 848 850 else … … 1419 1421 const float distanceToLight = Magnitude(vectorToLight); 1420 1422 vectorToLight /= distanceToLight; 1421 1422 1423 //cout << "dist " << distanceToLight << " v " << vectorToLight << endl; 1423 1424 … … 1511 1512 1512 1513 delete [] data; 1513 1514 1514 stopil(); 1515 1515 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r3338 r3341 657 657 Matrix4x4 transl = TranslationMatrix(positions[0]); 658 658 659 //LoadModel("hbuddha.dem", dynamicObjects);660 LoadModel("torus.dem", dynamicObjects);659 LoadModel("hbuddha.dem", dynamicObjects); 660 //LoadModel("torus.dem", dynamicObjects); 661 661 //LoadModel("venusm.dem", dynamicObjects); 662 662 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/combineSsaoSep.cg
r3339 r3341 194 194 } 195 195 196 196 197 return OUT; 197 198 } … … 248 249 } 249 250 250 //OUT.illum_col.xyz = float3(ao.w * 5e-3f, 0, 0); 251 //OUT.illum_col.xyz = float3(ao.y * 1e-2f, 0, 0); 251 OUT.illum_col.xyz = float3(ao.w * 5e-1f, 0, 0); 252 //OUT.illum_col.xyz = float3(ao.z * 1e-1f); 253 OUT.illum_col.xyz = float3(ao.y * 1e-1f);//, 0, 0); 252 254 //OUT.illum_col.xyz = ao.xyz; 253 255 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg
r3340 r3341 331 331 332 332 float4 color = tex2Dlod(colorsTex, float4(IN.texCoord, .0f, .0f)); 333 // store scaled view vector so wie don't have to normalize for e.g., ssao333 // store scaled view vector so wie don't have to normalize for e.g., SSAO 334 334 color.w /= length(IN.view); 335 335 … … 353 353 ); 354 354 #else 355 356 355 const float2 pValid = float2(0,0); 357 358 356 #endif 359 357 -
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.