Document the direction that directional and spot lights emit light in

This commit is contained in:
Aaron Franke 2025-06-08 03:34:01 -07:00
parent 42c7f14422
commit a5c2e82e8d
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF
3 changed files with 5 additions and 2 deletions

View file

@ -5,6 +5,7 @@
</brief_description>
<description>
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).
Light is emitted in the +Y direction of the node's global basis. For an unrotated light, this means that the light is emitted downwards. The position of the node is ignored; only the basis is used to determine light direction.
[b]Note:[/b] [DirectionalLight2D] does not support light cull masks (but it supports shadow cull masks). It will always light up 2D nodes, regardless of the 2D node's [member CanvasItem.light_mask].
</description>
<tutorials>