diff options
author | Graham Linden <graham@lindenlab.com> | 2019-05-03 12:02:59 -0700 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-05-03 12:02:59 -0700 |
commit | 89c24095c6c1b778b93a4eb7ad398627f4d5479f (patch) | |
tree | 2a51ca4473f7b3d91c79bac36aa333f3f28acdcd /indra/newview/pipeline.cpp | |
parent | 8d32aade01b0b87bd626a81f68b210538e90095b (diff) |
SL-11085
Remove ambient term clamping to get less dark shadows where we want less dark shadows in ALM.
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r-- | indra/newview/pipeline.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index f1a75f1277..9d8f5721d2 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -10181,7 +10181,8 @@ void LLPipeline::generateSunShadow(LLCamera& camera) //LLVector3 n = RenderShadowNearDist; //F32 nearDist[] = { n.mV[0], n.mV[1], n.mV[2], n.mV[2] }; - LLVector3 caster_dir(environment.getIsSunUp() ? mSunDir : mMoonDir); + LLVector3 caster_dir(environment.getIsSunUp() ? LLVector3(environment.getClampedSunNorm()) : + environment.getIsMoonUp() ? LLVector3(environment.getClampedMoonNorm()) : LLVector3(0,0,1)); //put together a universal "near clip" plane for shadow frusta LLPlane shadow_near_clip; |