Shadows change depending on the camera angle

Godot 4.5

Hi,

i have the problem that shadows are behaving strangely depending on the camera angle. Sometimes the shadows are of lower resolution, other times they are completely gone. I’ve already tried different shadow settings in the lights but nothing has helped so far. I also tried disabling “Tighter Shadow Caster Culling” but that didn’t help either.

Any ideas?

Thanks for reading,

Peter

This happens because of shadow quadrant shifts. See the section on shadow quadrants in the 3D lights and shadows documentation:

You can alleviate this by changing all quadrants to have the same number of shadows in the Project Settings (e.g. set all quadrants to 4 Shadows to support up to 16 shadowed lights in view, or 16 Shadows to support up to 64 shadowed lights in view). This will make all quadrants have the same resolution per shadow, which makes quadrant shifts unnoticeable (they’ll still occur, but make no visual difference).

Thanks for your reply!

Unfortunately, it hasn’t solved the problem, the shadows still behave the same way. Here is a screenshot of my settings:

It turned out that because I was using a SubViewport, I had to set the settings you mentioned there instead of in the project settings. ^^