diff options
author | Dave Parks <davep@lindenlab.com> | 2022-05-24 10:34:47 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-05-24 10:34:47 -0500 |
commit | 0940e8871894e08da80730d11c31cbd252a05b35 (patch) | |
tree | a73b1ce8c7539c0c71d3eb4670e77311507a56f0 /indra/newview/llfloaterpreference.cpp | |
parent | 6eaf8521abae0deeb1162f9c61747183110176b0 (diff) |
SL-17472 Add checkbox to preferences for enabling "PBR" that uses "class3" deferred shaders. Move reflection probe shaders to class3 and restore class2 shaders to non-reflection probe versions.
Diffstat (limited to 'indra/newview/llfloaterpreference.cpp')
-rw-r--r-- | indra/newview/llfloaterpreference.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index 8d19aa36bb..045bc4a6b8 100644 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -1182,6 +1182,7 @@ void LLFloaterPreference::refreshEnabledState() { LLCheckBoxCtrl* ctrl_wind_light = getChild<LLCheckBoxCtrl>("WindLightUseAtmosShaders"); LLCheckBoxCtrl* ctrl_deferred = getChild<LLCheckBoxCtrl>("UseLightShaders"); + LLCheckBoxCtrl* ctrl_pbr = getChild<LLCheckBoxCtrl>("UsePBRShaders"); // if vertex shaders off, disable all shader related products if (!LLFeatureManager::getInstance()->isFeatureAvailable("WindLightUseAtmosShaders")) @@ -1205,6 +1206,11 @@ void LLFloaterPreference::refreshEnabledState() ctrl_deferred->setEnabled(enabled); + //PBR + BOOL deferred = gSavedSettings.getBOOL("RenderDeferred"); + // TODO: add "RenderPBR" to LLFeatureManager + ctrl_pbr->setEnabled(deferred); + // Cannot have floater active until caps have been received getChild<LLButton>("default_creation_permissions")->setEnabled(LLStartUp::getStartupState() < STATE_STARTED ? false : true); |