From f0fcbeff745a04d5a6d7188fb12ec46fdc79fd6b Mon Sep 17 00:00:00 2001 From: Graham Linden Date: Fri, 5 Apr 2019 10:07:17 -0700 Subject: SL-10748 Clamp far_clip for sun shadows to >= 256.0 to prevent issues when draw distance < ~100m. --- indra/newview/pipeline.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview') diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index bd7c428559..260292d3fb 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -10282,6 +10282,7 @@ void LLPipeline::generateSunShadow(LLCamera& camera) //far_clip = llmin(far_clip, 128.f); far_clip = llmin(far_clip, camera.getFar()); + far_clip = llmax(far_clip, 256.0f); F32 range = far_clip-near_clip; -- cgit v1.2.3