From 13b746401e0447226dc16bbefdcfb82d25ec8e63 Mon Sep 17 00:00:00 2001 From: RunitaiLinden Date: Tue, 23 May 2023 08:30:53 -0500 Subject: SL-19760 Remove hacky HSL bump for ambient sky color (broken on edge cases, not helpful). --- indra/newview/llsettingsvo.cpp | 8 -------- 1 file changed, 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) -- cgit v1.2.3