How can I change the 3d shadow render distance?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Me

I’m currently working on a 3d project in godot with a huge map, but the shadows seam to vanish after a certain distance. I disabled fog but that didn’t change anything.
How can I change the 3d shadow render distance?

Thanks in advance!

:bust_in_silhouette: Reply From: klaas

Hi … Max Distance when you mean directional light

https://docs.godotengine.org/en/stable/classes/class_directionallight.html#class-directionallight-property-directional-shadow-max-distance

Note that the larger the Max Distance, the less detailed the shadows will be. You need to find a balance.

Protip: if you’re working on an open world game that features flying, you can increase the max distance at run-time if the player is high above the ground (where they’re more likely to see shadows in the distance). This technique has been used in many AAA games such as Just Cause 2.

Calinou | 2020-08-18 13:29