The maximum distance from the camera center objects can be before their shadows are culled (in pixels). Decreasing this value can prevent objects located outside the camera from casting shadows (while also improving performance). [member Camera2D.zoom] is not taken into account by
max_distance, which means that at higher zoom values, shadows will appear to fade out sooner when zooming onto a given point.