Godot Version
4.2
Question
Is there way to lower distance of casted shadow as you can see at the screenshot? I use Tilemap, DirectionalLight2D and CanvasModulate to create mentioned shadow.
4.2
Is there way to lower distance of casted shadow as you can see at the screenshot? I use Tilemap, DirectionalLight2D and CanvasModulate to create mentioned shadow.
Looks it is possible but not this way. Never tried but documentation says:
"Directional shadows will always appear to be infinitely long, regardless of the value of the Height property. This is a limitation of the shadow rendering method used for 2D lights in Godot.
To have directional shadows that are not infinitely long, you should disable shadows in the DirectionalLight2D and use a custom shader that reads from the 2D signed distance field instead. This distance field is automatically generated from LightOccluder2D nodes present in the scene."