diff options
author | Dave Parks <davep@lindenlab.com> | 2023-02-07 12:59:38 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2023-02-07 12:59:38 -0600 |
commit | 055883beb5709dfb4814c8c5e90ea326abc07724 (patch) | |
tree | 82629fb9048136f538fdf9681d0d0795f01dd80f /indra/newview/llreflectionmapmanager.cpp | |
parent | 8926242d096ac9975efab4426a23161f8717edcb (diff) |
SL-18780 Turn down contribution of cloud shadow to reflection probe ambiance and make the value a debug setting.
Diffstat (limited to 'indra/newview/llreflectionmapmanager.cpp')
-rw-r--r-- | indra/newview/llreflectionmapmanager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llreflectionmapmanager.cpp b/indra/newview/llreflectionmapmanager.cpp index 4fd10b85ad..04bce58114 100644 --- a/indra/newview/llreflectionmapmanager.cpp +++ b/indra/newview/llreflectionmapmanager.cpp @@ -780,7 +780,9 @@ void LLReflectionMapManager::updateUniforms() LLEnvironment& environment = LLEnvironment::instance(); LLSettingsSky::ptr_t psky = environment.getCurrentSky(); - F32 minimum_ambiance = psky->getTotalReflectionProbeAmbiance(); + static LLCachedControl<F32> cloud_shadow_scale(gSavedSettings, "RenderCloudShadowAmbianceFactor", 0.125f); + F32 minimum_ambiance = psky->getTotalReflectionProbeAmbiance(cloud_shadow_scale); + F32 ambscale = gCubeSnapshot && !isRadiancePass() ? 0.f : 1.f; |