- Timestamp:
- 11/02/08 17:35:59 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredRenderer.cpp
r3085 r3087 267 267 mDownSampleFbo = new FrameBufferObject(w / 2, h / 2, FrameBufferObject::DEPTH_NONE); 268 268 mDownSampleFbo->AddColorBuffer(ColorBufferObject::RGBA_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR); 269 // downsample buffer for the normal texture 269 270 mDownSampleFbo->AddColorBuffer(ColorBufferObject::RGB_FLOAT_16, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR); 270 271 … … 272 273 273 274 // create noise texture for ssao 274 CreateNoiseTex2D(m DownSampleFbo->GetWidth(), mDownSampleFbo->GetHeight());275 CreateNoiseTex2D(mIllumFbo->GetWidth(), mIllumFbo->GetHeight()); 275 276 276 277 mProjViewMatrix = IdentityMatrix(); … … 504 505 505 506 void DeferredRenderer::ComputeSsao(FrameBufferObject *fbo, 506 float tempCohFactor 507 508 ) 507 float tempCohFactor) 509 508 { 510 509 #if 0 … … 516 515 #endif 517 516 517 // flip flop between illumination buffers 518 518 GLuint oldTex = mIllumFbo->GetColorBuffer(2 - mIllumFboIndex)->GetTexture(); 519 519 … … 571 571 sCgSsaoProgram->SetValue3f(16, tl.x, tl.y, tl.z); 572 572 sCgSsaoProgram->SetValue3f(17, tr.x, tr.y, tr.z); 573 574 573 575 574 DrawQuad(sCgSsaoProgram);
Note: See TracChangeset
for help on using the changeset viewer.