Shadows and clipping on terrain trees acting wierd

I have a simple Unity Terrain object, with some mushroom/tree things.

For some reason, the shadows appear and disappear at random, and when a tree gets too close to the camera, it seems to disappear.

Here is a video of the issue:

Any help would be greatly appreciated.

1 Answer

1

After fiddling around with the shadow cascades in the URP asset it seems to work fine. I still don’t really know what the problem was.