Changeset 2976 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
- Timestamp:
- 09/26/08 18:31:24 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r2974 r2976 168 168 PerfTimer frameTimer, algTimer; 169 169 170 170 static int sCurrentMrtSet = 0; 171 171 172 172 /// the used render type for this render pass … … 617 617 618 618 // the diffuse color buffer 619 fbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_ NEAREST, ColorBufferObject::FILTER_NEAREST);619 fbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR, ColorBufferObject::FILTER_LINEAR); 620 620 621 621 // the positions buffer … … 626 626 627 627 // another color buffer 628 fbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_ NEAREST, ColorBufferObject::FILTER_NEAREST);628 fbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR, ColorBufferObject::FILTER_LINEAR); 629 629 630 630 PrintGLerror("fbo"); … … 1053 1053 // draw to 3 color buffers 1054 1054 // a color, normal, and positions buffer 1055 glDrawBuffers(4, mrt); 1055 if (sCurrentMrtSet == 0) 1056 { 1057 DeferredRenderer::colorBufferIdx = 0; 1058 glDrawBuffers(3, mrt); 1059 } 1060 else 1061 { 1062 DeferredRenderer::colorBufferIdx = 3; 1063 glDrawBuffers(3, mrt2); 1064 } 1065 sCurrentMrtSet = 1 - sCurrentMrtSet; 1056 1066 1057 1067 glEnableClientState(GL_NORMAL_ARRAY);
Note: See TracChangeset
for help on using the changeset viewer.