]> git.mxchange.org Git - flightgear.git/commitdiff
bind the sky disable cutoff distance to a property
authorTorsten Dreyer <Torsten@t3r.de>
Fri, 9 Mar 2012 20:00:23 +0000 (21:00 +0100)
committerTorsten Dreyer <Torsten@t3r.de>
Fri, 9 Mar 2012 20:00:23 +0000 (21:00 +0100)
There used to be a hardcoded visibility of 1000m below which the
sky was disabled. This distance is now bound to
/sim/rendering/minimum-sky-visibility with a default value of 1000

src/Environment/environment_mgr.cxx

index 606a3e74ccd1088484ff09ff988d3efee5ac8405..cc74f99553495fd4b587e36f0e5d72e0d3a831f6 100644 (file)
@@ -242,6 +242,10 @@ FGEnvironmentMgr::bind ()
           &SGSky::get_3dCloudUseImpostors,
           &SGSky::set_3dCloudUseImpostors);
 
+  _tiedProperties.Tie("minimum-sky-visibility", _sky,
+          &SGSky::get_minimum_sky_visibility,
+          &SGSky::set_minimum_sky_visibility);
+
 //  _tiedProperties.Tie("lightning-enable", &sgEnviro,
 //          &SGEnviro::get_lightning_enable_state,
 //          &SGEnviro::set_lightning_enable_state);