- Timestamp:
- 08/26/08 20:45:40 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SsaoShader.cpp
r2869 r2871 87 87 // the diffuse color buffer 88 88 mNewFbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR, false); 89 mNewFbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR, false); 89 90 90 91 mOldFbo = new FrameBufferObject(w, h, FrameBufferObject::DEPTH_NONE); 91 92 // the diffuse color buffer 93 mOldFbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR, false); 92 94 mOldFbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR, false); 93 95 … … 140 142 141 143 142 sCgCombineProgram =144 /*sCgCombineProgram = 143 145 cgCreateProgramFromFile(context, 144 146 CG_SOURCE, … … 158 160 else 159 161 cerr << "combined program failed to load" << endl; 160 162 */ 161 163 162 164 /////////////// … … 257 259 FirstPass(fbo); 258 260 ComputeSsao(fbo, expFactor); 259 Combine(fbo);261 //Combine(fbo); 260 262 AntiAliasing(fbo); 261 263 … … 291 293 // read the second buffer, write to the first buffer 292 294 mNewFbo->Bind(); 293 glDrawBuffers( 1, mymrt);295 glDrawBuffers(2, mymrt); 294 296 295 297 GLuint oldTex = mOldFbo->GetColorBuffer(0)->GetTexture(); … … 443 445 void SsaoShader::AntiAliasing(FrameBufferObject *fbo) 444 446 { 445 GLuint colorsTex = mFbo4->GetColorBuffer(0)->GetTexture();446 //GLuint colorsTex = mNewFbo->GetColorBuffer(0)->GetTexture();447 //GLuint colorsTex = mFbo4->GetColorBuffer(0)->GetTexture(); 448 GLuint colorsTex = mNewFbo->GetColorBuffer(1)->GetTexture(); 447 449 GLuint normalsTex = fbo->GetColorBuffer(2)->GetTexture(); 448 450
Note: See TracChangeset
for help on using the changeset viewer.