diff options
author | Dave Parks <davep@lindenlab.com> | 2010-10-20 16:18:08 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-10-20 16:18:08 -0500 |
commit | 96187475d1485da471ffe65b86a9a2d86e54ae99 (patch) | |
tree | 07e09b27078092dadc1e4c1e2189de62ed48ba5e /indra/newview/llviewercontrol.cpp | |
parent | 1ca35bb30fa18e2d39aa06247b4478740d82d798 (diff) |
SH-157 Add "RenderLocalLights" to preferences and featuretable to replace old local lights on/off radio group.
Diffstat (limited to 'indra/newview/llviewercontrol.cpp')
-rw-r--r-- | indra/newview/llviewercontrol.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llviewercontrol.cpp b/indra/newview/llviewercontrol.cpp index e6fc819b6b..416553ff08 100644 --- a/indra/newview/llviewercontrol.cpp +++ b/indra/newview/llviewercontrol.cpp @@ -121,6 +121,13 @@ static bool handleSetShaderChanged(const LLSD& newvalue) return true; } +static bool handleLightingDetailChanged(const LLSD& newvalue) +{ + gPipeline.setLightingDetail(-1); + return true; +} + + static bool handleRenderPerfTestChanged(const LLSD& newvalue) { bool status = !newvalue.asBoolean(); @@ -533,6 +540,7 @@ void settings_setup_listeners() gSavedSettings.getControl("RenderBakeSunlight")->getSignal()->connect(boost::bind(&handleResetVertexBuffersChanged, _2)); gSavedSettings.getControl("RenderNoAlpha")->getSignal()->connect(boost::bind(&handleResetVertexBuffersChanged, _2)); gSavedSettings.getControl("RenderShaderLightingMaxLevel")->getSignal()->connect(boost::bind(&handleSetShaderChanged, _2)); + gSavedSettings.getControl("RenderLocalLights")->getSignal()->connect(boost::bind(&handleLightingDetailChanged, _2)); gSavedSettings.getControl("RenderAvatarVP")->getSignal()->connect(boost::bind(&handleSetShaderChanged, _2)); gSavedSettings.getControl("RenderPerformanceTest")->getSignal()->connect(boost::bind(&handleRenderPerfTestChanged, _2)); gSavedSettings.getControl("VertexShaderEnable")->getSignal()->connect(boost::bind(&handleSetShaderChanged, _2)); |