diff options
author | RunitaiLinden <davep@lindenlab.com> | 2023-05-23 08:30:53 -0500 |
---|---|---|
committer | RunitaiLinden <davep@lindenlab.com> | 2023-05-23 08:30:53 -0500 |
commit | 13b746401e0447226dc16bbefdcfb82d25ec8e63 (patch) | |
tree | bc96f2868d60764b9223ab0e0c12d3835636a65e /indra | |
parent | 733c5af192a70abfa8115aac916cf0e53c7c13e6 (diff) |
SL-19760 Remove hacky HSL bump for ambient sky color (broken on edge cases, not helpful).
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llsettingsvo.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/indra/newview/llsettingsvo.cpp b/indra/newview/llsettingsvo.cpp index a7a5a9223c..de11f580a8 100644 --- a/indra/newview/llsettingsvo.cpp +++ b/indra/newview/llsettingsvo.cpp @@ -717,14 +717,6 @@ void LLSettingsVOSky::applySpecial(void *ptarget, bool force) LLColor3 ambient(getTotalAmbient()); F32 g = getGamma(); - if (ambient != LLColor3::black && getReflectionProbeAmbiance() == 0.f) - { //desaturate ambient for legacy compatibility - F32 h, s, l; - ambient.calcHSL(&h, &s, &l); - s *= 0.5f; - l *= 1.f / (g + llmax(g-1.f, 0.f)); - ambient.setHSL(h, s, l); - } if (irradiance_pass) { // during an irradiance map update, disable ambient lighting (direct lighting only) and desaturate sky color (avoid tinting the world blue) |