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 );
// 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 )
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 {
* @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 );