]> git.mxchange.org Git - flightgear.git/commitdiff
Prevent rf2 from becoming inf
authorErik Hofman <erik@ehofman.com>
Wed, 25 May 2016 08:30:34 +0000 (10:30 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 22 Sep 2016 21:27:35 +0000 (23:27 +0200)
src/Time/light.cxx

index 8600372ce0257a092830247d036583b701b6b122..e31e4ad1d3261fe1a0279e657c944704eb498253 100644 (file)
@@ -358,8 +358,8 @@ void FGLight::update_adj_fog_color () {
     float avf = 0.87 - (45000 - av) / 83333.33;
     float sif = 0.5 - cos(_sun_angle*2)/2;
 
-    if (sif < 1e-4)
-       sif = 1e-4;
+    if (sif < 1e-3)
+       sif = 1e-3;
 
     // determine horizontal angle between current view direction and sun
     // since _sun_rotation is relative to South, and heading is in the local frame