diff options
author | Dave Parks <davep@lindenlab.com> | 2022-12-16 13:35:16 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-12-16 13:35:16 -0600 |
commit | d0af1ca7cb2174c479139692ed764ccaca92a8d5 (patch) | |
tree | 4b4620d0087b4ca62d44ff2179a1ca68493bc121 /indra/llinventory/llsettingssky.cpp | |
parent | ad1ecfd9cd1ebedf9aec4a31fd044983b8e0afe8 (diff) |
SL-18780 Feedback cloud coverage into reflection probe ambiance to recover legacy behavior of cloud coverage brightening ambient lighting without destroying the ability to have good probe driven ambiance.
Diffstat (limited to 'indra/llinventory/llsettingssky.cpp')
-rw-r--r-- | indra/llinventory/llsettingssky.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/llinventory/llsettingssky.cpp b/indra/llinventory/llsettingssky.cpp index d4e616abc2..4004793ffd 100644 --- a/indra/llinventory/llsettingssky.cpp +++ b/indra/llinventory/llsettingssky.cpp @@ -1437,6 +1437,16 @@ F32 LLSettingsSky::getReflectionProbeAmbiance() const return mSettings[SETTING_REFLECTION_PROBE_AMBIANCE].asReal(); } +F32 LLSettingsSky::getTotalReflectionProbeAmbiance() const +{ + // feed cloud shadow back into reflection probe ambiance to mimic pre-reflection-probe behavior + // without brightening dark/interior spaces + F32 probe_ambiance = getReflectionProbeAmbiance(); + probe_ambiance += (1.f - probe_ambiance) * getCloudShadow()*0.5f; + + return probe_ambiance; +} + F32 LLSettingsSky::getSkyBottomRadius() const { return mSettings[SETTING_SKY_BOTTOM_RADIUS].asReal(); |