Inherits: Light2D < Node2D < CanvasItem < Node < Object
Positional 2D light source.
Casts light in a 2D environment. This light's shape is defined by a (usually grayscale) texture.
| ||
| ||
|
0.0
The height of the light. Used with 2D normal mapping. The units are in pixels, e.g. if the height is 100, then it will illuminate an object 100 pixels away at a 45° angle to the plane.
Vector2(0, 0)
The offset of the light's texture.
Texture2D used for the light's appearance.
1.0
The texture's scale factor.
© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_pointlight2d.html