Changeset 2901 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
- Timestamp:
- 09/04/08 10:14:18 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r2900 r2901 156 156 bool useTemporalCoherence = true; 157 157 158 static float ssao ExpFactor = 0.1f;158 static float ssaoTempCohFactor = 255.0; 159 159 160 160 bool showAlgorithmTime = false; … … 303 303 304 304 env.GetBoolParam(string("useFullScreen"), useFullScreen); 305 env.GetFloatParam(string(" expFactor"), ssaoExpFactor);305 env.GetFloatParam(string("tempCohFactor"), ssaoTempCohFactor); 306 306 env.GetVectorParam(string("camPosition"), camPos); 307 307 env.GetVectorParam(string("camDirection"), camDir); … … 324 324 cout << "useLODs: " << useLODs << endl; 325 325 cout << "camPosition: " << camPos << endl; 326 cout << " expFactor: " << ssaoExpFactor << endl;326 cout << "temporal coherence: " << ssaoTempCohFactor << endl; 327 327 328 328 //cout << "model path: " << model_path << endl; … … 1032 1032 1033 1033 ShadowMap *sm = showShadowMap ? shadowMap : NULL; 1034 ssaoShader->Render(fbo, oldViewProjMatrix, matProjectionView, ssao ExpFactor, sm);1034 ssaoShader->Render(fbo, oldViewProjMatrix, matProjectionView, ssaoTempCohFactor, sm); 1035 1035 } 1036 1036 … … 1142 1142 break; 1143 1143 case '7': 1144 ssao ExpFactor *= 0.5f;1144 ssaoTempCohFactor *= 0.5f; 1145 1145 break; 1146 1146 case '8': 1147 ssao ExpFactor *= 2.0f;1148 if (ssaoExpFactor > 1.0f) ssaoExpFactor = 1.0f;1147 ssaoTempCohFactor *= 2.0f; 1148 //if (ssaoTempCohFactor > 1.0f) ssaoExpFactor = 1.0f; 1149 1149 break; 1150 1150 case '9':
Note: See TracChangeset
for help on using the changeset viewer.