From 7f0ebf88714bf8b02335b1af959677d1814d0a39 Mon Sep 17 00:00:00 2001 From: ehofman Date: Tue, 17 Aug 2004 08:28:35 +0000 Subject: [PATCH] this simple patch will prevent to have fog in Clear cload layers. --- simgear/scene/sky/sky.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/simgear/scene/sky/sky.cxx b/simgear/scene/sky/sky.cxx index 3d446981..8e366d34 100644 --- a/simgear/scene/sky/sky.cxx +++ b/simgear/scene/sky/sky.cxx @@ -266,7 +266,10 @@ void SGSky::modify_vis( float alt, float time_factor ) { double ratio = 1.0; - if ( alt < asl - transition ) { + if ( cloud_layers[i]->getCoverage() == SGCloudLayer::SG_CLOUD_CLEAR ) { + // clear layer + ratio = 1.0; + } else if ( alt < asl - transition ) { // below cloud layer ratio = 1.0; } else if ( alt < asl ) { -- 2.39.5