From 6a154a59e1665d762ee0ca7659f91a9419430775 Mon Sep 17 00:00:00 2001 From: fredb Date: Thu, 11 Dec 2008 08:24:58 +0000 Subject: [PATCH] Stuart : - Removes the cloud type re-use code - I think they aren't worth the graphical artefacts that they cause in light of Tim's improvements - Changes the transparency of the clouds. Previously, the clouds were transparent at 0m distance, opaque at 200m, then gradually more transparent to the fog limits. This meant they were generally quite transparent. Now, they are opaque from 200m to 15km, then become transparent at 20km. A side effect of this is that the current textures could probably benefit from being made slightly transparent to improve the blending of the sprites against each other. --- src/Environment/environment_mgr.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Environment/environment_mgr.cxx b/src/Environment/environment_mgr.cxx index fd0f7b77d..4542472d8 100644 --- a/src/Environment/environment_mgr.cxx +++ b/src/Environment/environment_mgr.cxx @@ -191,9 +191,7 @@ FGEnvironmentMgr::bind () fgTie("/sim/rendering/clouds3d-vis-range", thesky, &SGSky::get_3dCloudVisRange, &SGSky::set_3dCloudVisRange); - fgTie("/sim/rendering/clouds3d-num-flavours", thesky, - &SGSky::get_3dCloudNumFlavours, - &SGSky::set_3dCloudNumFlavours); + fgTie("/sim/rendering/precipitation-enable", &sgEnviro, &SGEnviro::get_precipitation_enable_state, &SGEnviro::set_precipitation_enable_state); @@ -244,7 +242,6 @@ FGEnvironmentMgr::unbind () fgUntie("/sim/rendering/clouds3d-enable"); fgUntie("/sim/rendering/clouds3d-vis-range"); fgUntie("/sim/rendering/clouds3d-density"); - fgUntie("/sim/rendering/clouds3d-num-flavours"); fgUntie("/sim/rendering/precipitation-enable"); fgUntie("/environment/rebuild-layers"); fgUntie("/sim/rendering/lightning-enable");