From: ehofman Date: Wed, 14 May 2003 19:22:04 +0000 (+0000) Subject: Update the sunset colors X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e1f96243ec4f96406779bde2ad6c136ffe2b12c3;p=flightgear.git Update the sunset colors --- diff --git a/src/Time/light.cxx b/src/Time/light.cxx index 023e4d0f0..a6021b174 100644 --- a/src/Time/light.cxx +++ b/src/Time/light.cxx @@ -124,9 +124,10 @@ void fgLIGHT::Update( void ) { // base fog color float *sun_color = thesky->get_sun_color(); - base_fog_color[0] *= (0.75 + sun_color[0]/4); - base_fog_color[1] *= (0.5 + sun_color[1]/2); - base_fog_color[2] *= sun_color[2]; + + base_fog_color[0] *= (1.25 - sun_color[0]/4.0); // 100% red + base_fog_color[1] *= (0.48 + sun_color[1]/1.923); // 40% green + base_fog_color[2] *= sun_color[2]; // 0% blue deg = sun_angle * SGD_RADIANS_TO_DEGREES;