weird shadows

157543-un-problem.jpg

when i use a perspective camera this happens.
it is almost like the camera has a focus rectangle and if a shadow is out of that rectangle it looks blurry
this doesn’t happen with the orthographic camera.
and i’m using URP btw.

https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@7.1/manual/universalrp-asset.html#shadows

These are shadow cascades, more specifically the borders between them. Shadowmaps have a limited resolution, as such there is a balance between clarity and distance over which a directional shadowmap can cover. The solution for this is to use multiple shadowmaps (cascades), each to cover a different distance from the camera. As such, cascades that are further away will be of a lower resolution but it is less noticeable. If you wish to adjust this, you can decrease your global shadow distance, increase your shadow resolution, increase the number of cascades or adjust the ratios between the cascades.