Changeset 3015
- Timestamp:
- 10/08/08 14:55:08 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredRenderer.cpp
r3010 r3015 696 696 697 697 cgGLSetMatrixParameterfc(sOldModelViewProjMatrixParam, (const float *)oldProjViewMatrix.x); 698 699 //GLuint colorsTex = fbo->GetColorBuffer(colorBufferIdx)->GetTexture();700 //GLuint normalsTex = fbo->GetColorBuffer(1)->GetTexture();701 //GLuint positionsTex = fbo->GetColorBuffer(2)->GetTexture();702 698 #if 1 699 GLuint colorsTex = fbo->GetColorBuffer(colorBufferIdx)->GetTexture(); 700 GLuint normalsTex = fbo->GetColorBuffer(1)->GetTexture(); 701 GLuint positionsTex = fbo->GetColorBuffer(2)->GetTexture(); 702 #else 703 703 GLuint colorsTex = mDownSampleFbo->GetColorBuffer(0)->GetTexture(); 704 704 GLuint normalsTex = mDownSampleFbo->GetColorBuffer(1)->GetTexture(); 705 705 GLuint positionsTex = mDownSampleFbo->GetColorBuffer(2)->GetTexture(); 706 706 #endif 707 707 708 GLuint oldTex = mFbo->GetColorBuffer(2 - mFboIndex)->GetTexture(); 708 709 … … 1296 1297 downSampleOffsets[6] = -xoffs; downSampleOffsets[7] = yoffs; 1297 1298 */ 1298 const float xoffs = .5f / w; 1299 const float yoffs = .5f / h; 1299 //const float xoffs = .5f / w; 1300 //const float yoffs = .5f / h; 1301 1302 const float xoffs = 1.0f / w; 1303 const float yoffs = 1.0f / h; 1300 1304 1301 1305 int idx = 0; -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r3014 r3015 627 627 628 628 // the diffuse color buffer 629 fbo->AddColorBuffer(ColorBufferObject::RGBA_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_ NEAREST, ColorBufferObject::FILTER_NEAREST);629 fbo->AddColorBuffer(ColorBufferObject::RGBA_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR, ColorBufferObject::FILTER_NEAREST); 630 630 // the normals buffer 631 631 fbo->AddColorBuffer(ColorBufferObject::RGBA_FLOAT_16, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST); … … 634 634 fbo->AddColorBuffer(ColorBufferObject::RGB_UBYTE, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_NEAREST); 635 635 // another color buffer 636 fbo->AddColorBuffer(ColorBufferObject::RGBA_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_ NEAREST, ColorBufferObject::FILTER_NEAREST);636 fbo->AddColorBuffer(ColorBufferObject::RGBA_FLOAT_32, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR, ColorBufferObject::FILTER_NEAREST); 637 637 638 638 PrintGLerror("fbo"); -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h
r3014 r3015 15 15 #define AREA_SIZE 8e-1f 16 16 17 #define DISTANCE_SCALE 1e- 4f17 #define DISTANCE_SCALE 1e-1f 18 18 //#define DISTANCE_SCALE 1e-6f 19 19 … … 40 40 #define MAX_LOD_LEVEL 10 41 41 42 #define MIN_DEPTH_DIFF 1e- 3f42 #define MIN_DEPTH_DIFF 1e-1f 43 43 // burnout 44 44 #define WHITE_LUMINANCE 3e4f
Note: See TracChangeset
for help on using the changeset viewer.