Changeset 2860 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
- Timestamp:
- 08/21/08 20:17:46 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r2859 r2860 668 668 // this fbo basicly stores the scene information we get from standard rendering of a frame 669 669 // we store colors, normals, positions (for the ssao) 670 myfbo = new FrameBufferObject(texWidth, texHeight, true, FrameBufferObject::DEPTH_24);670 fbo = new FrameBufferObject(texWidth, texHeight, true, FrameBufferObject::DEPTH_24); 671 671 672 672 673 673 // the diffuse color buffer 674 myfbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, 675 ColorBufferObject::WRAP_CLAMP_TO_EDGE, 676 ColorBufferObject::FILTER_LINEAR, 677 false, false); 674 fbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR, false, false); 678 675 679 676 // the positions buffer 680 myfbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, 681 ColorBufferObject::WRAP_CLAMP_TO_EDGE, 682 ColorBufferObject::FILTER_NEAREST, 683 false, false); 677 fbo->AddColorBuffer(ColorBufferObject::BUFFER_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, false, false); 684 678 685 679 // the normals buffer 686 myfbo->AddColorBuffer(ColorBufferObject::BUFFER_UBYTE, 687 ColorBufferObject::WRAP_CLAMP_TO_EDGE, 688 ColorBufferObject::FILTER_NEAREST, 689 false, false); 690 691 680 fbo->AddColorBuffer(ColorBufferObject::BUFFER_UBYTE, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST, false, false); 681 692 682 693 683
Note: See TracChangeset
for help on using the changeset viewer.