Changeset 3308 for GTP/trunk/App
- Timestamp:
- 02/12/09 18:51:36 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredRenderer.cpp
r3306 r3308 74 74 75 75 // ssao random spherical samples 76 static Sample2 samples2[NUM_SAMPLES]; 77 //#define NUM_PRECOMPUTED_SAMPLES 240 78 //static Sample2 samples2[NUM_PRECOMPUTED_SAMPLES]; 76 //static Sample2 samples2[NUM_SAMPLES]; 77 #define NUM_PRECOMPUTED_SAMPLES 2001 78 79 static Sample2 samples2[NUM_PRECOMPUTED_SAMPLES]; 79 80 // pcf samples 80 81 static Sample2 pcfSamples[NUM_PCF_TABS]; … … 207 208 case DeferredRenderer::SAMPLING_QUADRATIC: 208 209 { 209 //static QuadraticDiscSampleGenerator2D g(NUM_PRECOMPUTED_SAMPLES, 1.0f);210 static QuadraticDiscSampleGenerator2D g(NUM_SAMPLES, 1.0f);210 static QuadraticDiscSampleGenerator2D g(NUM_PRECOMPUTED_SAMPLES, 1.0f); 211 //static QuadraticDiscSampleGenerator2D g(NUM_SAMPLES, 1.0f); 211 212 g.Generate((float *)samples2); 212 213 } … … 744 745 static int currentPos = 0; 745 746 746 if ( mUseTemporalCoherence ||mRegenerateSamples)747 if (/*mUseTemporalCoherence || */mRegenerateSamples) 747 748 { 748 749 mRegenerateSamples = false; … … 757 758 758 759 //if (mSortSamples) { SortSamples(); } 759 sCgSsaoProgram->SetArray2f(i, (float *)samples2 + currentPos, NUM_SAMPLES); 760 //sCgSsaoProgram->SetArray2f(i, (float *)samples2 + currentPos, NUM_SAMPLES); 761 sCgSsaoProgram->SetArray2f(i, (float *)samples2 + currentPos, NUM_PRECOMPUTED_SAMPLES); 760 762 761 763 currentPos += NUM_SAMPLES;
Note: See TracChangeset
for help on using the changeset viewer.