From bda589bffe39a0bba67981deea08f9211e48668b Mon Sep 17 00:00:00 2001 From: Josh Jones Date: Fri, 11 Nov 2022 23:21:39 -0800 Subject: Add documentation for DirectionalLight2D --- doc/classes/DirectionalLight2D.xml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc') diff --git a/doc/classes/DirectionalLight2D.xml b/doc/classes/DirectionalLight2D.xml index a1b8ea86be..7a54980c19 100644 --- a/doc/classes/DirectionalLight2D.xml +++ b/doc/classes/DirectionalLight2D.xml @@ -1,8 +1,10 @@ + Directional light from a distance. + A directional light is a type of [Light2D] node that models an infinite number of parallel rays covering the entire scene. It is used for lights with strong intensity that are located far away from the scene (for example: to model sunlight or moonlight). @@ -11,6 +13,7 @@ The height of the light. Used with 2D normal mapping. Ranges from 0 (parallel to the plane) to 1 (perpendicular to the plane). + Maximum distance this light covers. Increasing this value will make directional shadows visible from further away, at the cost of lower overall shadow detail and performance (due to more objects being included in shadow rendering). -- cgit v1.2.3