]> git.mxchange.org Git - flightgear.git/commitdiff
Stuart :
authorfredb <fredb>
Thu, 11 Dec 2008 08:24:58 +0000 (08:24 +0000)
committerfredb <fredb>
Thu, 11 Dec 2008 08:24:58 +0000 (08:24 +0000)
- 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

index fd0f7b77d0aabb534aabedca035ac1dcc3eb763d..4542472d8881c441193b8619255c2eecc593ad96 100644 (file)
@@ -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");