]> git.mxchange.org Git - simgear.git/commitdiff
A small update to the fog punch through code
authorehofman <ehofman>
Thu, 14 Aug 2003 12:32:58 +0000 (12:32 +0000)
committerehofman <ehofman>
Thu, 14 Aug 2003 12:32:58 +0000 (12:32 +0000)
simgear/scene/sky/oursun.cxx

index d8d8a9edc9f9a48ca6698eae52506a09e9adf951..2024cbe116198548574e07b5479a6e2cad18d623 100644 (file)
@@ -341,11 +341,7 @@ bool SGSun::repaint( double sun_angle, double new_visibility ) {
     if ( visibility != new_visibility ) {
         static double sqrt_m_log01 = sqrt( -log( 0.01 ) );
         visibility = new_visibility;
-        if ( visibility < 8000 ) {
-            sun_exp2_punch_through = sqrt_m_log01 / (visibility * 10);
-        } else {
-            sun_exp2_punch_through = sqrt_m_log01 / (8000 * 10);
-        }
+        sun_exp2_punch_through = sqrt_m_log01 / (visibility * 15);
     }
 
     if (prev_sun_angle != sun_angle)