Strange Realtime Shadow Issue!

Hey everyone,

I asked this in the Graphics/HDRP sub a few days ago here , but haven’t had any replies so I’ll try here.

I’m experiencing a strange problem with realtime shadows since upgrading my project from 2019.1.0f2 using HDRP 5.13.0 to 2019.3.0b9 using HDRP 7.1.1.

enchantedpositiveiggypops

The shadows look like they’re being culled in a weird way close to the camera. The video clip was recorded in the scene view, but the same also happens in game.
Both projects have the same shadow settings in the volume component with a max distance of 500 (default). If I increase the max distance to 5000 in the 2019.3.0b9 project, the issue mostly disappears, but the shadows look awful (blurred) no matter what settings I set in the shadows override for cascade etc.

Something must have changed regarding shadows between versions as I can recreate the issue using a new default scene project created with 2019.3.0b9.

I’ve since tried a couple of different versions:

tried 2019.1.14f1 with HDRP 5.16.1 and there is no problem with the shadows.
tried 2019.2.11f1 with HDRP 6.9.0 and the shadows are messed up as shown in video.

Could this change in HDRP 6.8.0 be the cause?

  • Changed how shadow map resolution scaling with distance is computed. Now it uses screen space area rather than light range.

The scene uses a single directional light with the following settings:

Any help appreciated.

You’ve upgraded your project from a stable version to a beta one; it could be the origin of your problems. Unless you’re doing this for the pleasure of testing a new version of Unity, you’d better ugrading from 2019.1 to 2019.2: https://unity3d.com/get-unity/download/archive

Hi, thanks for replying.

As I stated in the OP, I’ve tried 2019.2 final and the same problem exists:

tried 2019.1.14f1 with HDRP 5.16.1 and there is no problem with the shadows.
tried 2019.2.11f1 with HDRP 6.9.0 and the shadows are messed up as shown in video.

It’s a problem with HDRP then, you should file a bug report.

It would probably be better that you stick to 2019.2 too. :wink:

1 Like