From: ehofman Date: Fri, 16 May 2003 16:32:47 +0000 (+0000) Subject: Adjust sunset/sun rise color scheme X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4ea676b229cac1310fc98b8ef794df4c8668dbad;p=simgear.git Adjust sunset/sun rise color scheme --- diff --git a/simgear/scene/sky/oursun.cxx b/simgear/scene/sky/oursun.cxx index 70dca1cc..f94d0af4 100644 --- a/simgear/scene/sky/oursun.cxx +++ b/simgear/scene/sky/oursun.cxx @@ -347,7 +347,7 @@ bool SGSun::repaint( double sun_angle ) { sgVec4 color; sgSetVec4( color, (ambient * 6.0) - 1.0, // minimum value = 0.8 - (ambient * 11.0) - 3.0, // minimum value = 0.3 + (ambient * 11.0) - 2.8, // minimum value = 0.5 (ambient * 12.0) - 3.6, // minimum value = 0.0 1.0 ); diff --git a/simgear/scene/sky/sky.cxx b/simgear/scene/sky/sky.cxx index 012fdd92..0a767aa2 100644 --- a/simgear/scene/sky/sky.cxx +++ b/simgear/scene/sky/sky.cxx @@ -105,7 +105,7 @@ void SGSky::build( double sun_size, double moon_size, // 0 degrees = high noon // 90 degrees = sun rise/set // 180 degrees = darkest midnight -bool SGSky::repaint( sgVec4 sky_color, sgVec4 fog_color, +bool SGSky::repaint( sgVec4 sky_color, sgVec4 fog_color, sgVec4 cloud_color, double sun_angle, double moon_angle, int nplanets, sgdVec3 *planet_data, int nstars, sgdVec3 *star_data ) @@ -120,7 +120,7 @@ bool SGSky::repaint( sgVec4 sky_color, sgVec4 fog_color, for ( int i = 0; i < (int)cloud_layers.size(); ++i ) { if (cloud_layers[i]->getCoverage() != SGCloudLayer::SG_CLOUD_CLEAR){ - cloud_layers[i]->repaint( fog_color ); + cloud_layers[i]->repaint( cloud_color ); } } } else { diff --git a/simgear/scene/sky/sky.hxx b/simgear/scene/sky/sky.hxx index fba4d486..7ddb440a 100644 --- a/simgear/scene/sky/sky.hxx +++ b/simgear/scene/sky/sky.hxx @@ -261,7 +261,7 @@ public: * @param star_data an array of star right ascensions, declinations, * and magnitudes */ - bool repaint( sgVec4 sky_color, sgVec4 fog_color, + bool repaint( sgVec4 sky_color, sgVec4 fog_color, sgVec4 cloud_color, double sun_angle, double moon_angle, int nplanets, sgdVec3 *planet_data, int nstars, sgdVec3 *star_data );