Hi.
So i’m starting to model my first map, using some free libraries.
For some reason, no object in the scene cast shadows on the surface.
I found some videos online but nothing helped so far.
I have attached an image that present the situatuation.
Thanks in advance.
Ruchir
September 17, 2021, 2:05pm
2
Try increasing the shadow distance in shadow volume override. For performance reasons realtime shadows are disabled after certain distance.
https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@12.0/manual/Override-Shadows.html
(Just note that increasing the distance will decrease performance and significantly reduce shadow quality (You could make near shadows look a bit better using the cascade settings but overall quality will decrease))
To overcome this you could bake lighting and use the shadowMask mode, also make the directional light mixed or baked and use distance shadowMask or shadowsMask mode in the shadow section.
https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@12.0/manual/Lighting-Mode-Shadowmask.html
Also try enabling contact shadows, this doesn’t require scene to be baked so it’s a good option for long distance shadows but it’s screen-space effect so it has it’s limitations.
https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@12.0/manual/Override-Contact-Shadows.html
Hope this helps.
olavrv
September 18, 2021, 3:49pm
3
Close game / scene view tabs and add them again, this is a editor bug I believe…