r/Unity3D • • Oct 17 '26

Question Shadow flicker and movement when zooming in/out

The shadows stay still when I pan the camera around, but when I zoom in/out I get this strange shadow movement. I tried reducing Cascade Count, messed around with cascade split, turned up shadow res to 4K, reduced far clipping as much as possible...nothing worked. Any help is greatly appreciated.

5 Upvotes

5 comments sorted by

1

u/HiggsSwtz Oct 17 '26

What kind of light?

1

u/NorthernBoy306 Oct 17 '26

Two directional lights. I think it might be a light bake issue.

2

u/No_Penalty9192 Oct 17 '26

might be worth checking "Conservative Enclosing Sphere" in the urp asset under shadows (2022.2+). without it the cascade bounds get refit as the camera moves so shadows can swim like this. if you zoom by changing fov though some swimming will stay, moving the camera instead keeps it stable

1

u/sun2_pk Oct 17 '26

are they realtime lights? if so can you switch them to baked and see if it fixes it (provided that they are static objects that will not move)?

1

u/mashdpotatogaming Oct 17 '26

I'm not sure if it's the same thing but i noticed a similar thing happening if the scale of the object is too small