Changeset 3308 for GTP/trunk/App


Ignore:
Timestamp:
02/12/09 18:51:36 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r3306 r3308  
    7474 
    7575// 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 
     79static Sample2 samples2[NUM_PRECOMPUTED_SAMPLES]; 
    7980// pcf samples 
    8081static Sample2 pcfSamples[NUM_PCF_TABS]; 
     
    207208        case DeferredRenderer::SAMPLING_QUADRATIC: 
    208209                { 
    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); 
    211212                        g.Generate((float *)samples2); 
    212213                } 
     
    744745        static int currentPos = 0; 
    745746 
    746         if (mUseTemporalCoherence || mRegenerateSamples) 
     747        if (/*mUseTemporalCoherence || */mRegenerateSamples) 
    747748        { 
    748749                mRegenerateSamples = false; 
     
    757758 
    758759                //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); 
    760762 
    761763                currentPos += NUM_SAMPLES; 
Note: See TracChangeset for help on using the changeset viewer.