summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r--indra/newview/pipeline.cpp19
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();