SL-10748
Clamp far_clip for sun shadows to >= 256.0 to prevent issues when draw distance < ~100m.master
parent
09bb0336f1
commit
f0fcbeff74
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue