Why do shadows appear in editor but not in game?
Asked Answered
N

1

0

I have to boxes. In the editor the top box casts a shadow on the lower one.

In game the shadow does not appear:

The light is coming from a DirectionalLight3D
This is the material Im using for the boxes:

Any idea how I can get shadows in game?
If you cant read the text on the image please right click the image and open it in a new tab.
Thanks!

Nephew answered 15/2, 2023 at 19:19 Comment(0)
N
0

Solved it. My camera is really far away which resulted in shadows not rendering. I fixed this by adjusting the max distance value of the directional light

Nephew answered 16/2, 2023 at 18:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.