- Timestamp:
- 09/05/08 10:35:18 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r2903 r2905 44 44 static Environment env; 45 45 46 #define MAX_DEPTH_CONST myfar //10.0f; 46 47 47 48 // fbo … … 512 513 Material::sAmbientTexParam = cgGetNamedParameter(RenderState::sCgMrtFragmentTexProgram, "ambient"); 513 514 514 cgGLSetParameter1f(sMaxDepthParamTex, 10.0f/ myfar);515 Debug << "maxdepth: " << 10.0f/ myfar << endl;515 cgGLSetParameter1f(sMaxDepthParamTex, MAX_DEPTH_CONST / myfar); 516 //Debug << "maxdepth: " << MAX_DEPTH_CONST / myfar << endl; 516 517 } 517 518 else … … 534 535 Material::sAmbientParam = cgGetNamedParameter(RenderState::sCgMrtFragmentProgram, "ambient"); 535 536 536 cgGLSetParameter1f(sMaxDepthParam, 10.0f/ myfar);537 cgGLSetParameter1f(sMaxDepthParam, MAX_DEPTH_CONST / myfar); 537 538 } 538 539 else … … 1025 1026 cgGLDisableProfile(RenderState::sCgFragmentProfile); 1026 1027 1027 if (!ssaoShader) ssaoShader = new DeferredRenderer(texWidth, texHeight, camera, myfar / 10.0f);1028 if (!ssaoShader) ssaoShader = new DeferredRenderer(texWidth, texHeight, camera, myfar / MAX_DEPTH_CONST); 1028 1029 1029 1030 DeferredRenderer::SHADING_METHOD shadingMethod; -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h
r2904 r2905 11 11 12 12 // for quadradtc falloff 13 #define SAMPLE_INTENSITY 0.28f14 //#define SAMPLE_INTENSITY 0.32f13 //#define SAMPLE_INTENSITY 0.28f 14 #define SAMPLE_INTENSITY 0.32f 15 15 //#define SAMPLE_INTENSITY 2.4f 16 16 … … 25 25 //#define DISTANCE_SCALE 5e-7f 26 26 #define DISTANCE_SCALE 1e-6f 27 //#define DISTANCE_SCALE 1.0f27 //#define DISTANCE_SCALE 0.0f 28 28 29 29 #define ILLUM_INTENSITY 5e-1f;
Note: See TracChangeset
for help on using the changeset viewer.