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:
parent
6113981b39
commit
25c6e8acbd
1 changed files with 4 additions and 0 deletions
|
@ -242,6 +242,10 @@ FGEnvironmentMgr::bind ()
|
||||||
&SGSky::get_3dCloudUseImpostors,
|
&SGSky::get_3dCloudUseImpostors,
|
||||||
&SGSky::set_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,
|
// _tiedProperties.Tie("lightning-enable", &sgEnviro,
|
||||||
// &SGEnviro::get_lightning_enable_state,
|
// &SGEnviro::get_lightning_enable_state,
|
||||||
// &SGEnviro::set_lightning_enable_state);
|
// &SGEnviro::set_lightning_enable_state);
|
||||||
|
|
Loading…
Reference in a new issue