summaryrefslogtreecommitdiff
path: root/indra/llinventory
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@geenzo.com>2023-04-12 15:18:27 -0700
committerJonathan "Geenz" Goodman <geenz@geenzo.com>2023-04-12 15:18:27 -0700
commit6d5c16971654764de28833fd886f522212d3746d (patch)
tree977b913112505d09966133857c9a92fd07629431 /indra/llinventory
parent58df456675f37146d9a6cdaaf75c0f2b93f234c6 (diff)
parentd6b99cff8ab7550b5e0316c831087050f19c91c6 (diff)
Merge branch 'DRTVWR-559' into DRTVWR-559-post-refactor
Diffstat (limited to 'indra/llinventory')
-rw-r--r--indra/llinventory/llsettingssky.cpp5
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;
}