Hey Everyone,
I recently switched my project over to HDRP and have been having huge issues with the shadows on the terrain.
I am using 2019.4.20f1 and HDRP 7.5.3.
This only happens when the terrain is set to ‘Draw Instanced’.
Update*** |This will happen to any terrain that is spilt inside Unity 2019.4 LTS HDRP 7.5.3.|***
I have seen other threads from people facing the same issue and they just disable the ‘Draw Instanced’ option however, if I do that my project just crashes when I press play. I would also like to keep the benefits of instanced terrain as there are 133 terrains in the project.
What I have tried so far
I have checked the clipping plane is at a resonable level, even changed to extremely low or high numbers with no effect on the shadows.
I have also played with the shadow cascades - this also has no effect.
I did try to reproduce this in a new project, but have been unable to get the shadows to act like this. I am currently still trying to reproduced to see if I can find the cause!
Removed skybox/set a new skybox.
Using a different terrain shader.
Deleting everything in the scene - to see if there was a gameobject causing it.
I placed a huge plane with a few cubes in the scene and deactivated the terrain, the shadows dissapear. Re-activating the terrains the shadows re appear.
If I do disable ‘Draw Instanced’ then the shadows dissapear and the scene lighting is as expected.
Has anyone got any ideas what might be causing this issue? I am 100% sure it is something to do with the terrains, is this a bug with ‘Draw Instanced’?
Any help anyone can provide would much appreciated, it is driving me crazy and grinding my project to a halt.