- Timestamp:
- 10/29/08 01:08:56 (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/SkyPreetham.cpp
r3070 r3077 292 292 // downscale ambient color 293 293 if (scaleToRange) 294 ambient *= 2e-5f;294 ambient *= 5e-6f; 295 295 else 296 296 ambient *= 1e-1f; … … 298 298 // simulate the sun intensity by modulating the ambient term. 299 299 ambient *= (10.0f - 9.0f * DotProd(sunDir, Vector3::UNIT_Z())); 300 //ambient += Vector3(0.2f); 300 301 301 302 302 Vector3 num; … … 330 330 color.z = 0.055648f * XYZ.x - 0.204043f * XYZ.y + 1.057311f * XYZ.z; 331 331 332 // Calculate final sun diffuse color.332 // calculate final sun diffuse color. 333 333 if (scaleToRange) 334 diffuse = color * 5e-2f;334 diffuse = color * 1e-5f; 335 335 else 336 336 diffuse = color * 3e-1f; -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r3076 r3077 773 773 774 774 // no tone mapping => scale 775 if ( !useToneMapping)776 { 777 constfloat maxComponent = sunDiffuse.MaxComponent();775 if (0)//!useToneMapping) 776 { 777 float maxComponent = sunDiffuse.MaxComponent(); 778 778 sunDiffuse /= maxComponent; 779 779 } … … 782 782 diffuse[1] = sunDiffuse.y; 783 783 diffuse[2] = sunDiffuse.z; 784 785 //cout << sunDiffuse << " " << sunAmbient << endl; 784 786 785 787 glLightfv(GL_LIGHT0, GL_AMBIENT, ambient);
Note: See TracChangeset
for help on using the changeset viewer.