- Timestamp:
- 01/04/09 21:48:45 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredRenderer.cpp
r3242 r3246 73 73 74 74 // ssao random spherical samples 75 //static Sample2 samples2[NUM_SAMPLES];76 #define NUM_PRECOMPUTED_SAMPLES 24077 static Sample2 samples2[NUM_PRECOMPUTED_SAMPLES];75 static Sample2 samples2[NUM_SAMPLES]; 76 //#define NUM_PRECOMPUTED_SAMPLES 240 77 //static Sample2 samples2[NUM_PRECOMPUTED_SAMPLES]; 78 78 // pcf samples 79 79 static Sample2 pcfSamples[NUM_PCF_TABS]; … … 210 210 case DeferredRenderer::SAMPLING_QUADRATIC: 211 211 { 212 static QuadraticDiscSampleGenerator2D g(NUM_PRECOMPUTED_SAMPLES, 1.0f); 212 //static QuadraticDiscSampleGenerator2D g(NUM_PRECOMPUTED_SAMPLES, 1.0f); 213 static QuadraticDiscSampleGenerator2D g(NUM_SAMPLES, 1.0f); 213 214 g.Generate((float *)samples2); 214 215 } … … 753 754 // in the first case, the sample patterns look nicer, but the kernel 754 755 // needs longer to converge 755 if (currentPos + NUM_SAMPLES >= NUM_PRECOMPUTED_SAMPLES) 756 { 756 //if (currentPos + NUM_SAMPLES >= NUM_PRECOMPUTED_SAMPLES) { 757 757 currentPos = 0; 758 758 GenerateSamples(mSamplingMethod); 759 }759 //} 760 760 761 761 //if (mSortSamples) { SortSamples(); }
Note: See TracChangeset
for help on using the changeset viewer.