Ignore:
Timestamp:
01/04/09 21:48:45 (15 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredRenderer.cpp

    r3242 r3246  
    7373 
    7474// ssao random spherical samples 
    75 //static Sample2 samples2[NUM_SAMPLES]; 
    76 #define NUM_PRECOMPUTED_SAMPLES 240 
    77 static Sample2 samples2[NUM_PRECOMPUTED_SAMPLES]; 
     75static Sample2 samples2[NUM_SAMPLES]; 
     76//#define NUM_PRECOMPUTED_SAMPLES 240 
     77//static Sample2 samples2[NUM_PRECOMPUTED_SAMPLES]; 
    7878// pcf samples 
    7979static Sample2 pcfSamples[NUM_PCF_TABS]; 
     
    210210        case DeferredRenderer::SAMPLING_QUADRATIC: 
    211211                { 
    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); 
    213214                        g.Generate((float *)samples2); 
    214215                } 
     
    753754                // in the first case, the sample patterns look nicer, but the kernel 
    754755                // needs longer to converge 
    755                 if (currentPos + NUM_SAMPLES >= NUM_PRECOMPUTED_SAMPLES) 
    756                 { 
     756                //if (currentPos + NUM_SAMPLES >= NUM_PRECOMPUTED_SAMPLES)      { 
    757757                        currentPos = 0; 
    758758                        GenerateSamples(mSamplingMethod); 
    759                 } 
     759                //} 
    760760 
    761761                //if (mSortSamples) { SortSamples(); } 
Note: See TracChangeset for help on using the changeset viewer.