- Timestamp:
- 01/23/09 18:33:15 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SkyPreetham.cpp
r3288 r3291 61 61 } 62 62 else 63 { 63 64 cerr << "sky program failed to load" << endl; 65 } 64 66 65 67 mSkyFragProgram = … … 294 296 ambient *= 8e-6f; 295 297 else 298 { 296 299 ambient *= 1e-1f; 297 300 298 // slightly too blueish => scale 299 ambient.x *= 1.3f; 300 ambient.y *= 1.1f; 301 ambient.z = max(max(ambient.z, ambient.x), ambient.y); 301 // slightly too blueish with tone mapping => scale 302 ambient.x *= 1.3f; 303 ambient.y *= 1.1f; 304 ambient.z = max(max(ambient.z, ambient.x), ambient.y); 305 } 306 302 307 303 308 // simulate the sun intensity by modulating the ambient term.
Note: See TracChangeset
for help on using the changeset viewer.