From 21c16b4a51c9e5ef770a97dd251255a6f40965ae Mon Sep 17 00:00:00 2001 From: ehofman Date: Thu, 14 Aug 2003 12:32:58 +0000 Subject: [PATCH] A small update to the fog punch through code --- simgear/scene/sky/oursun.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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) -- 2.39.5