- Timestamp:
- 09/03/08 13:02:39 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredRenderer.cpp
r2898 r2899 6 6 #include "Camera.h" 7 7 #include "shaderenv.h" 8 #include "RndGauss.h"9 8 #include "Halton.h" 10 9 #include "ShadowMapping.h" … … 12 11 13 12 using namespace std; 14 15 static GLenum mymrt[] = {GL_COLOR_ATTACHMENT0_EXT, GL_COLOR_ATTACHMENT1_EXT, GL_COLOR_ATTACHMENT2_EXT, GL_COLOR_ATTACHMENT3_EXT};16 13 17 14 … … 130 127 case DeferredRenderer::GAUSS: 131 128 { 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); 133 133 gauss.Generate((Sample2 *)samples); 134 134 } … … 508 508 //mNewFbo->Bind(); 509 509 mFbo->Bind(); 510 glDrawBuffers(1, m ymrt + mFboIndex);510 glDrawBuffers(1, mrt + mFboIndex); 511 511 512 512 … … 657 657 658 658 colorBufferIdx = 3; 659 glDrawBuffers(1, m ymrt + colorBufferIdx);659 glDrawBuffers(1, mrt + colorBufferIdx); 660 660 661 661 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); … … 727 727 mFbo->Bind(); 728 728 729 glDrawBuffers(2, m ymrt + mFboIndex);729 glDrawBuffers(2, mrt + mFboIndex); 730 730 731 731 //GLuint oldSsaoTex = mOldFbo->GetColorBuffer(0)->GetTexture(); … … 819 819 // overwrite old color texture 820 820 colorBufferIdx = 0; 821 glDrawBuffers(1, m ymrt + colorBufferIdx);821 glDrawBuffers(1, mrt + colorBufferIdx); 822 822 823 823 cgGLEnableProfile(RenderState::sCgFragmentProfile); … … 872 872 // overwrite old color texture 873 873 colorBufferIdx = 0; 874 glDrawBuffers(1, m ymrt + colorBufferIdx);874 glDrawBuffers(1, mrt + colorBufferIdx); 875 875 876 876 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); … … 925 925 926 926 colorBufferIdx = 3; 927 glDrawBuffers(1, m ymrt + colorBufferIdx);927 glDrawBuffers(1, mrt + colorBufferIdx); 928 928 929 929
Note: See TracChangeset
for help on using the changeset viewer.