- Timestamp:
- 09/02/08 15:48:44 (16 years ago)
- 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" 2 2 #include "FrameBufferObject.h" 3 3 #include "RenderState.h" … … 123 123 switch (sampling) 124 124 { 125 case SsaoShader::POISSON:125 case DeferredRenderer::POISSON: 126 126 { 127 127 static PoissonDiscSampleGenerator poisson(NUM_SAMPLES, 1.0f); … … 129 129 } 130 130 break; 131 case SsaoShader::GAUSS:131 case DeferredRenderer::GAUSS: 132 132 { 133 133 const float radius = 1.0f; … … 202 202 203 203 204 SsaoShader::SsaoShader(int w, int h, Camera *cam, float scaleFactor):204 DeferredRenderer::DeferredRenderer(int w, int h, Camera *cam, float scaleFactor): 205 205 mWidth(w), mHeight(h), 206 206 mCamera(cam), … … 240 240 241 241 242 SsaoShader::~SsaoShader()242 DeferredRenderer::~DeferredRenderer() 243 243 { 244 244 if (sCgSsaoProgram) cgDestroyProgram(sCgSsaoProgram); … … 256 256 257 257 258 void SsaoShader::SetUseTemporalCoherence(bool temporal)258 void DeferredRenderer::SetUseTemporalCoherence(bool temporal) 259 259 { 260 260 mUseTemporalCoherence = temporal; … … 262 262 263 263 264 void SsaoShader::Init(CGcontext context)264 void DeferredRenderer::Init(CGcontext context) 265 265 { 266 266 sCgDeferredProgram = … … 436 436 437 437 438 void SsaoShader::Render(FrameBufferObject *fbo,438 void DeferredRenderer::Render(FrameBufferObject *fbo, 439 439 const Matrix4x4 &oldProjViewMatrix, 440 440 float expFactor, … … 507 507 508 508 509 void SsaoShader::ComputeSsao(FrameBufferObject *fbo,509 void DeferredRenderer::ComputeSsao(FrameBufferObject *fbo, 510 510 float expFactor, 511 511 const Matrix4x4 &oldProjViewMatrix … … 601 601 602 602 603 void SsaoShader::ComputeViewVectors(Vector3 &tl, Vector3 &tr, Vector3 &bl, Vector3 &br)603 void DeferredRenderer::ComputeViewVectors(Vector3 &tl, Vector3 &tr, Vector3 &bl, Vector3 &br) 604 604 { 605 605 Vector3 ftl, ftr, fbl, fbr, ntl, ntr, nbl, nbr; … … 630 630 631 631 632 void SsaoShader::AntiAliasing(FrameBufferObject *fbo)632 void DeferredRenderer::AntiAliasing(FrameBufferObject *fbo) 633 633 { 634 634 GLuint colorsTex = fbo->GetColorBuffer(colorBufferIdx)->GetTexture(); … … 670 670 671 671 672 void SsaoShader::FirstPass(FrameBufferObject *fbo)672 void DeferredRenderer::FirstPass(FrameBufferObject *fbo) 673 673 { 674 674 GLuint colorsTex = fbo->GetColorBuffer(0)->GetTexture(); … … 721 721 722 722 723 void SsaoShader::ComputeGlobIllum(FrameBufferObject *fbo,723 void DeferredRenderer::ComputeGlobIllum(FrameBufferObject *fbo, 724 724 float expFactor, 725 725 const Matrix4x4 &oldProjViewMatrix … … 827 827 828 828 829 void SsaoShader::CombineIllum(FrameBufferObject *fbo)829 void DeferredRenderer::CombineIllum(FrameBufferObject *fbo) 830 830 { 831 831 GLuint colorsTex = fbo->GetColorBuffer(3)->GetTexture(); … … 884 884 885 885 886 void SsaoShader::CombineSsao(FrameBufferObject *fbo)886 void DeferredRenderer::CombineSsao(FrameBufferObject *fbo) 887 887 { 888 888 GLuint colorsTex = fbo->GetColorBuffer(3)->GetTexture(); … … 933 933 934 934 935 void SsaoShader::FirstPassShadow(FrameBufferObject *fbo, ShadowMap *shadowMap)935 void DeferredRenderer::FirstPassShadow(FrameBufferObject *fbo, ShadowMap *shadowMap) 936 936 { 937 937 GLuint colorsTex = fbo->GetColorBuffer(0)->GetTexture(); … … 995 995 996 996 997 void SsaoShader::SetSamplingMethod(SAMPLING_METHOD s)997 void DeferredRenderer::SetSamplingMethod(SAMPLING_METHOD s) 998 998 { 999 999 if (s != mSamplingMethod)
Note: See TracChangeset
for help on using the changeset viewer.