Ignore:
Timestamp:
09/02/08 15:48:44 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2895 r2896  
    1 #include "SsaoShader.h" 
     1#include "DeferredRenderer.h" 
    22#include "FrameBufferObject.h" 
    33#include "RenderState.h" 
     
    123123        switch (sampling) 
    124124        { 
    125         case SsaoShader::POISSON: 
     125        case DeferredRenderer::POISSON: 
    126126                { 
    127127                        static PoissonDiscSampleGenerator poisson(NUM_SAMPLES, 1.0f); 
     
    129129                } 
    130130                break; 
    131         case SsaoShader::GAUSS: 
     131        case DeferredRenderer::GAUSS: 
    132132                { 
    133133                        const float radius = 1.0f; 
     
    202202 
    203203 
    204 SsaoShader::SsaoShader(int w, int h, Camera *cam, float scaleFactor): 
     204DeferredRenderer::DeferredRenderer(int w, int h, Camera *cam, float scaleFactor): 
    205205mWidth(w), mHeight(h),  
    206206mCamera(cam), 
     
    240240 
    241241 
    242 SsaoShader::~SsaoShader()  
     242DeferredRenderer::~DeferredRenderer()  
    243243{ 
    244244        if (sCgSsaoProgram)     cgDestroyProgram(sCgSsaoProgram); 
     
    256256 
    257257 
    258 void SsaoShader::SetUseTemporalCoherence(bool temporal) 
     258void DeferredRenderer::SetUseTemporalCoherence(bool temporal) 
    259259{ 
    260260        mUseTemporalCoherence = temporal; 
     
    262262 
    263263 
    264 void SsaoShader::Init(CGcontext context) 
     264void DeferredRenderer::Init(CGcontext context) 
    265265{        
    266266        sCgDeferredProgram =  
     
    436436 
    437437 
    438 void SsaoShader::Render(FrameBufferObject *fbo,  
     438void DeferredRenderer::Render(FrameBufferObject *fbo,  
    439439                                                const Matrix4x4 &oldProjViewMatrix, 
    440440                                                float expFactor, 
     
    507507 
    508508 
    509 void SsaoShader::ComputeSsao(FrameBufferObject *fbo,  
     509void DeferredRenderer::ComputeSsao(FrameBufferObject *fbo,  
    510510                                                         float expFactor, 
    511511                                                         const Matrix4x4 &oldProjViewMatrix 
     
    601601 
    602602 
    603 void SsaoShader::ComputeViewVectors(Vector3 &tl, Vector3 &tr, Vector3 &bl, Vector3 &br) 
     603void DeferredRenderer::ComputeViewVectors(Vector3 &tl, Vector3 &tr, Vector3 &bl, Vector3 &br) 
    604604{ 
    605605        Vector3 ftl, ftr, fbl, fbr, ntl, ntr, nbl, nbr; 
     
    630630 
    631631 
    632 void SsaoShader::AntiAliasing(FrameBufferObject *fbo) 
     632void DeferredRenderer::AntiAliasing(FrameBufferObject *fbo) 
    633633{ 
    634634        GLuint colorsTex = fbo->GetColorBuffer(colorBufferIdx)->GetTexture(); 
     
    670670 
    671671 
    672 void SsaoShader::FirstPass(FrameBufferObject *fbo) 
     672void DeferredRenderer::FirstPass(FrameBufferObject *fbo) 
    673673{ 
    674674        GLuint colorsTex = fbo->GetColorBuffer(0)->GetTexture(); 
     
    721721 
    722722 
    723 void SsaoShader::ComputeGlobIllum(FrameBufferObject *fbo,  
     723void DeferredRenderer::ComputeGlobIllum(FrameBufferObject *fbo,  
    724724                                                                  float expFactor, 
    725725                                                                  const Matrix4x4 &oldProjViewMatrix 
     
    827827 
    828828 
    829 void SsaoShader::CombineIllum(FrameBufferObject *fbo) 
     829void DeferredRenderer::CombineIllum(FrameBufferObject *fbo) 
    830830{ 
    831831        GLuint colorsTex = fbo->GetColorBuffer(3)->GetTexture(); 
     
    884884 
    885885 
    886 void SsaoShader::CombineSsao(FrameBufferObject *fbo) 
     886void DeferredRenderer::CombineSsao(FrameBufferObject *fbo) 
    887887{ 
    888888        GLuint colorsTex = fbo->GetColorBuffer(3)->GetTexture(); 
     
    933933 
    934934 
    935 void SsaoShader::FirstPassShadow(FrameBufferObject *fbo, ShadowMap *shadowMap) 
     935void DeferredRenderer::FirstPassShadow(FrameBufferObject *fbo, ShadowMap *shadowMap) 
    936936{ 
    937937        GLuint colorsTex = fbo->GetColorBuffer(0)->GetTexture(); 
     
    995995 
    996996 
    997 void SsaoShader::SetSamplingMethod(SAMPLING_METHOD s)  
     997void DeferredRenderer::SetSamplingMethod(SAMPLING_METHOD s)  
    998998{  
    999999        if (s != mSamplingMethod) 
Note: See TracChangeset for help on using the changeset viewer.