Clamp far_clip for sun shadows to >= 256.0 to prevent issues when draw distance < ~100m.
master
Graham Linden 2019-04-05 10:07:17 -07:00
parent 09bb0336f1
commit f0fcbeff74
1 changed files with 1 additions and 0 deletions

View File

@ -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;