diff options
author | RunitaiLinden <davep@lindenlab.com> | 2023-04-12 14:51:56 -0500 |
---|---|---|
committer | RunitaiLinden <davep@lindenlab.com> | 2023-04-12 14:51:56 -0500 |
commit | d6b99cff8ab7550b5e0316c831087050f19c91c6 (patch) | |
tree | 0b4238dac555306436a8aaa1b6fb49513fb703d3 /indra/llinventory | |
parent | 63c571191489539faafd4c97b3c870fb5e630e97 (diff) |
SL-19390 Make "Cloud Coverage" feedback into ambient when probe ambiance is zero and feedback into probe ambiance when probe ambiance is not zero.
Diffstat (limited to 'indra/llinventory')
-rw-r--r-- | indra/llinventory/llsettingssky.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llinventory/llsettingssky.cpp b/indra/llinventory/llsettingssky.cpp index 46a48e601f..8e801db2dc 100644 --- a/indra/llinventory/llsettingssky.cpp +++ b/indra/llinventory/llsettingssky.cpp @@ -1443,7 +1443,10 @@ F32 LLSettingsSky::getTotalReflectionProbeAmbiance(F32 cloud_shadow_scale) const // without brightening dark/interior spaces F32 probe_ambiance = getReflectionProbeAmbiance(); - probe_ambiance += (1.f - probe_ambiance) * getCloudShadow()*cloud_shadow_scale; + if (probe_ambiance > 0.f) + { + probe_ambiance += (1.f - probe_ambiance) * getCloudShadow() * cloud_shadow_scale; + } return probe_ambiance; } |