diff options
author | Dave Parks <davep@lindenlab.com> | 2022-09-26 17:17:34 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-09-26 17:17:34 -0500 |
commit | 725d042640f5b0474b58e6a1af0a4063c7e5cfc2 (patch) | |
tree | b79ea04dd68d87776dae0b14d0c99795f5cbcf4a /indra/newview/pipeline.cpp | |
parent | 20f44fb522099e8e14e42ea0d5dedf76b24b9d6c (diff) |
SL-18190 WIP - Windlight to linear space proof of concept, better parity between release viewer and materials viewer when reflections disabled. Avoid run-away probe ambiance.
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r-- | indra/newview/pipeline.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 26989a477a..325a370f43 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -6235,22 +6235,6 @@ void LLPipeline::calcNearbyLights(LLCamera& camera) } } -void LLPipeline::adjustAmbient(const LLSettingsSky* sky, LLColor4& ambient) -{ - //bump ambient based on reflection probe ambiance of probes are disabled - // so sky settings that rely on probes for ambiance don't go completely dark - // on low end hardware - if (!LLPipeline::sReflectionProbesEnabled) - { - F32 ambiance = linearTosRGB(sky->getReflectionProbeAmbiance()); - - for (int i = 0; i < 3; ++i) - { - ambient.mV[i] = llmax(ambient.mV[i], ambiance); - } - } -} - void LLPipeline::setupHWLights(LLDrawPool* pool) { LL_PROFILE_ZONE_SCOPED_CATEGORY_DRAWPOOL; @@ -6261,8 +6245,7 @@ void LLPipeline::setupHWLights(LLDrawPool* pool) // Ambient LLColor4 ambient = psky->getTotalAmbient(); - adjustAmbient(psky.get(), ambient); - + gGL.setAmbientLightColor(ambient); bool sun_up = environment.getIsSunUp(); |