2020-11-04 15:38:26 +01:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-07-06 10:08:05 +02:00
<class name= "PointLight2D" inherits= "Light2D" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2020-11-04 15:38:26 +01:00
<brief_description >
2022-11-24 23:03:04 +01:00
Positional 2D light source.
2020-11-04 15:38:26 +01:00
</brief_description>
<description >
2023-02-11 17:18:33 +01:00
Casts light in a 2D environment. This light's shape is defined by a (usually grayscale) texture.
2020-11-04 15:38:26 +01:00
</description>
<tutorials >
2022-11-24 23:03:04 +01:00
<link title= "2D lights and shadows" > $DOCS_URL/tutorials/2d/2d_lights_and_shadows.html</link>
2020-11-04 15:38:26 +01:00
</tutorials>
<members >
<member name= "height" type= "float" setter= "set_height" getter= "get_height" default= "0.0" >
2021-10-18 22:16:32 +02:00
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.
2020-11-04 15:38:26 +01:00
</member>
2019-09-24 19:45:03 +02:00
<member name= "offset" type= "Vector2" setter= "set_texture_offset" getter= "get_texture_offset" default= "Vector2(0, 0)" >
2020-11-04 15:38:26 +01:00
The offset of the light's [member texture].
</member>
<member name= "texture" type= "Texture2D" setter= "set_texture" getter= "get_texture" >
[Texture2D] used for the light's appearance.
</member>
<member name= "texture_scale" type= "float" setter= "set_texture_scale" getter= "get_texture_scale" default= "1.0" >
The [member texture]'s scale factor.
</member>
</members>
</class>