From: ehofman Date: Thu, 14 Aug 2003 12:32:58 +0000 (+0000) Subject: A small update to the fog punch through code X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=21c16b4a51c9e5ef770a97dd251255a6f40965ae;p=simgear.git A small update to the fog punch through code --- diff --git a/simgear/scene/sky/oursun.cxx b/simgear/scene/sky/oursun.cxx index d8d8a9ed..2024cbe1 100644 --- a/simgear/scene/sky/oursun.cxx +++ b/simgear/scene/sky/oursun.cxx @@ -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)