summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-03-26 13:37:07 -0700
committerGraham Linden <graham@lindenlab.com>2019-03-26 13:37:07 -0700
commit9dee4149ae6f33e2f82b8986b041df311f0cbe88 (patch)
tree9ae5d119a4a32fabb81d4647bc77bd12b1f66b76 /indra/newview
parent872b36488a7f3b1d9095e129e3973fefa11e85ba (diff)
Remove remaining 0.5/1.5 fudge factors on lighting radius/falloff params.
Make moonlight darker and slightly bluish for scotopic feel when moon is primary.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/pipeline.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 8bc68ac9ea..658410fd3d 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -8703,7 +8703,7 @@ void LLPipeline::renderDeferredLighting(LLRenderTarget* screen_target)
LLVector4a center;
center.load3(drawablep->getPositionAgent().mV);
const F32* c = center.getF32ptr();
- F32 s = volume->getLightRadius()*1.5f;
+ F32 s = volume->getLightRadius();
LLColor3 col = volume->getLightColor();
@@ -8770,7 +8770,7 @@ void LLPipeline::renderDeferredLighting(LLRenderTarget* screen_target)
mat.mult_matrix_vec(tc);
fullscreen_lights.push_back(LLVector4(tc.v[0], tc.v[1], tc.v[2], s));
- light_colors.push_back(LLVector4(col.mV[0], col.mV[1], col.mV[2], volume->getLightFalloff()*0.5f));
+ light_colors.push_back(LLVector4(col.mV[0], col.mV[1], col.mV[2], volume->getLightFalloff()));
}
}
unbindDeferredShader(gDeferredLightProgram);
@@ -8795,7 +8795,7 @@ void LLPipeline::renderDeferredLighting(LLRenderTarget* screen_target)
LLVector4a center;
center.load3(drawablep->getPositionAgent().mV);
const F32* c = center.getF32ptr();
- F32 s = volume->getLightRadius()*1.5f;
+ F32 s = volume->getLightRadius();
sVisibleLightCount++;
@@ -8888,7 +8888,7 @@ void LLPipeline::renderDeferredLighting(LLRenderTarget* screen_target)
LLVector3 center = drawablep->getPositionAgent();
F32* c = center.mV;
- F32 s = volume->getLightRadius()*1.5f;
+ F32 s = volume->getLightRadius();
sVisibleLightCount++;