From: Stuart Buchanan Date: Sat, 17 Dec 2011 18:52:38 +0000 (+0000) Subject: Add property controls for cloud impostors and LoD hierarchy radii. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4c321b6b802d0282d009a006972784ca2c32440c;p=flightgear.git Add property controls for cloud impostors and LoD hierarchy radii. --- diff --git a/src/Environment/environment_mgr.cxx b/src/Environment/environment_mgr.cxx index 312d52129..606a3e74c 100644 --- a/src/Environment/environment_mgr.cxx +++ b/src/Environment/environment_mgr.cxx @@ -222,10 +222,26 @@ FGEnvironmentMgr::bind () &SGSky::get_3dCloudVisRange, &SGSky::set_3dCloudVisRange); + _tiedProperties.Tie("clouds3d-impostor-range", _sky, + &SGSky::get_3dCloudImpostorDistance, + &SGSky::set_3dCloudImpostorDistance); + + _tiedProperties.Tie("clouds3d-lod1-range", _sky, + &SGSky::get_3dCloudLoD1Range, + &SGSky::set_3dCloudLoD1Range); + + _tiedProperties.Tie("clouds3d-lod2-range", _sky, + &SGSky::get_3dCloudLoD2Range, + &SGSky::set_3dCloudLoD2Range); + _tiedProperties.Tie("clouds3d-wrap", _sky, &SGSky::get_3dCloudWrap, &SGSky::set_3dCloudWrap); + _tiedProperties.Tie("clouds3d-use-impostors", _sky, + &SGSky::get_3dCloudUseImpostors, + &SGSky::set_3dCloudUseImpostors); + // _tiedProperties.Tie("lightning-enable", &sgEnviro, // &SGEnviro::get_lightning_enable_state, // &SGEnviro::set_lightning_enable_state);