From: curt Date: Mon, 4 Dec 2000 21:31:58 +0000 (+0000) Subject: Minor fix to make the dome always match the fog / horizon color at the X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c544777d37fb1403e1da0850965b619cc36b7d32;p=simgear.git Minor fix to make the dome always match the fog / horizon color at the horizon, so we don't see the extreme far tile edges when it is really dark. --- diff --git a/simgear/sky/dome.cxx b/simgear/sky/dome.cxx index 374fc3aa..bccdd6d4 100644 --- a/simgear/sky/dome.cxx +++ b/simgear/sky/dome.cxx @@ -356,11 +356,11 @@ bool SGSkyDome::repaint( sgVec4 sky_color, sgVec4 fog_color, double sun_angle, lower_color[i][j] = fog_color[j] + outer_amt[j]; if ( upper_color[i][j] > 1.0 ) { upper_color[i][j] = 1.0; } - if ( upper_color[i][j] < 0.1 ) { upper_color[i][j] = 0.1; } + if ( upper_color[i][j] < 0.0 ) { upper_color[i][j] = 0.0; } if ( middle_color[i][j] > 1.0 ) { middle_color[i][j] = 1.0; } - if ( middle_color[i][j] < 0.1 ) { middle_color[i][j] = 0.1; } + if ( middle_color[i][j] < 0.0 ) { middle_color[i][j] = 0.0; } if ( lower_color[i][j] > 1.0 ) { lower_color[i][j] = 1.0; } - if ( lower_color[i][j] < 0.1 ) { lower_color[i][j] = 0.1; } + if ( lower_color[i][j] < 0.0 ) { lower_color[i][j] = 0.0; } } upper_color[i][3] = middle_color[i][3] = lower_color[i][3] = 1.0; @@ -375,10 +375,10 @@ bool SGSkyDome::repaint( sgVec4 sky_color, sgVec4 fog_color, double sun_angle, printf("middle_color[%d] = %.2f %.2f %.2f %.2f\n", i, middle_color[i][0], middle_color[i][1], middle_color[i][2], middle_color[i][3]); + */ printf("lower_color[%d] = %.2f %.2f %.2f %.2f\n", i, lower_color[i][0], lower_color[i][1], lower_color[i][2], lower_color[i][3]); - */ } sgSetVec3( outer_amt, 0.0, 0.0, 0.0 ); @@ -397,11 +397,11 @@ bool SGSkyDome::repaint( sgVec4 sky_color, sgVec4 fog_color, double sun_angle, lower_color[i][j] = fog_color[j] + outer_amt[j]; if ( upper_color[i][j] > 1.0 ) { upper_color[i][j] = 1.0; } - if ( upper_color[i][j] < 0.1 ) { upper_color[i][j] = 0.1; } + if ( upper_color[i][j] < 0.0 ) { upper_color[i][j] = 0.0; } if ( middle_color[i][j] > 1.0 ) { middle_color[i][j] = 1.0; } - if ( middle_color[i][j] < 0.1 ) { middle_color[i][j] = 0.1; } + if ( middle_color[i][j] < 0.0 ) { middle_color[i][j] = 0.0; } if ( lower_color[i][j] > 1.0 ) { lower_color[i][j] = 1.0; } - if ( lower_color[i][j] < 0.1 ) { lower_color[i][j] = 0.1; } + if ( lower_color[i][j] < 0.0 ) { lower_color[i][j] = 0.0; } } upper_color[i][3] = middle_color[i][3] = lower_color[i][3] = 1.0; @@ -416,10 +416,10 @@ bool SGSkyDome::repaint( sgVec4 sky_color, sgVec4 fog_color, double sun_angle, printf("middle_color[%d] = %.2f %.2f %.2f %.2f\n", i, middle_color[i][0], middle_color[i][1], middle_color[i][2], middle_color[i][3]); + */ printf("lower_color[%d] = %.2f %.2f %.2f %.2f\n", i, lower_color[i][0], lower_color[i][1], lower_color[i][2], lower_color[i][3]); - */ } for ( i = 0; i < 12; i++ ) {