From e1f96243ec4f96406779bde2ad6c136ffe2b12c3 Mon Sep 17 00:00:00 2001 From: ehofman Date: Wed, 14 May 2003 19:22:04 +0000 Subject: [PATCH] Update the sunset colors --- src/Time/light.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; -- 2.39.5