1
0
Fork 0

bind the sky disable cutoff distance to a property

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
This commit is contained in:
Torsten Dreyer 2012-03-09 21:00:23 +01:00
parent 6113981b39
commit 25c6e8acbd

View 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);