Ignore:
Timestamp:
09/03/08 13:02:39 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2898 r2899  
    66#include "Camera.h" 
    77#include "shaderenv.h" 
    8 #include "RndGauss.h" 
    98#include "Halton.h" 
    109#include "ShadowMapping.h" 
     
    1211 
    1312using namespace std; 
    14  
    15 static GLenum mymrt[] = {GL_COLOR_ATTACHMENT0_EXT, GL_COLOR_ATTACHMENT1_EXT, GL_COLOR_ATTACHMENT2_EXT, GL_COLOR_ATTACHMENT3_EXT}; 
    1613 
    1714 
     
    130127        case DeferredRenderer::GAUSS: 
    131128                { 
    132                         static GaussianSampleGenerator gauss(NUM_SAMPLES, 0.5f); 
     129                        //static GaussianSampleGenerator gauss(NUM_SAMPLES, 0.5f); 
     130                        //gauss.Generate((Sample2 *)samples); 
     131 
     132                        static SphericalSampleGenerator gauss(NUM_SAMPLES, 0.5f); 
    133133                        gauss.Generate((Sample2 *)samples); 
    134134                } 
     
    508508        //mNewFbo->Bind(); 
    509509        mFbo->Bind(); 
    510         glDrawBuffers(1, mymrt + mFboIndex); 
     510        glDrawBuffers(1, mrt + mFboIndex); 
    511511 
    512512 
     
    657657 
    658658        colorBufferIdx = 3; 
    659         glDrawBuffers(1, mymrt + colorBufferIdx); 
     659        glDrawBuffers(1, mrt + colorBufferIdx); 
    660660 
    661661        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 
     
    727727        mFbo->Bind(); 
    728728 
    729         glDrawBuffers(2, mymrt + mFboIndex); 
     729        glDrawBuffers(2, mrt + mFboIndex); 
    730730 
    731731        //GLuint oldSsaoTex = mOldFbo->GetColorBuffer(0)->GetTexture(); 
     
    819819        // overwrite old color texture 
    820820        colorBufferIdx = 0; 
    821         glDrawBuffers(1, mymrt + colorBufferIdx); 
     821        glDrawBuffers(1, mrt + colorBufferIdx); 
    822822 
    823823        cgGLEnableProfile(RenderState::sCgFragmentProfile); 
     
    872872        // overwrite old color texture 
    873873        colorBufferIdx = 0; 
    874         glDrawBuffers(1, mymrt + colorBufferIdx); 
     874        glDrawBuffers(1, mrt + colorBufferIdx); 
    875875 
    876876        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 
     
    925925 
    926926        colorBufferIdx = 3; 
    927         glDrawBuffers(1, mymrt + colorBufferIdx); 
     927        glDrawBuffers(1, mrt + colorBufferIdx); 
    928928 
    929929         
Note: See TracChangeset for help on using the changeset viewer.