2024-03-24 21:45:06 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2024-04-26 17:32:25 +02:00
|
|
|
<class name="VertexLight2D" inherits="Node2D" version="4.4">
|
2024-03-24 21:45:06 +01:00
|
|
|
<brief_description>
|
2024-03-27 09:11:46 +01:00
|
|
|
A [Node2D] that manages a light in [VertexLights2DServer].
|
2024-03-24 21:45:06 +01:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2024-03-27 09:11:46 +01:00
|
|
|
A [Node2D] that manages a light in [VertexLights2DServer].
|
2024-03-24 21:45:06 +01:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
</methods>
|
|
|
|
<members>
|
2024-03-27 08:06:09 +01:00
|
|
|
<member name="attenuation" type="float" setter="set_attenuation" getter="get_attenuation" default="1.0">
|
2024-03-27 09:11:46 +01:00
|
|
|
The light's attenuation.
|
2024-03-27 08:06:09 +01:00
|
|
|
</member>
|
|
|
|
<member name="color" type="Color" setter="set_color" getter="get_color" default="Color( 1, 1, 1, 1 )">
|
2024-03-27 09:11:46 +01:00
|
|
|
The light's color.
|
2024-03-27 08:06:09 +01:00
|
|
|
</member>
|
|
|
|
<member name="enabled" type="bool" setter="set_enabled" getter="get_is_enabled" default="true">
|
2024-03-27 09:11:46 +01:00
|
|
|
WHether this light is enabled or not.
|
2024-03-24 21:45:06 +01:00
|
|
|
</member>
|
|
|
|
<member name="item_cull_mask" type="int" setter="set_item_cull_mask" getter="get_item_cull_mask" default="1">
|
2024-03-27 09:11:46 +01:00
|
|
|
The light's item cull mask.
|
2024-03-24 21:45:06 +01:00
|
|
|
</member>
|
2024-03-27 08:06:09 +01:00
|
|
|
<member name="layer_range" type="Vector2i" setter="set_layer_range" getter="get_layer_range" default="Vector2i( -512, 512 )">
|
2024-03-27 09:11:46 +01:00
|
|
|
The light's layer range.
|
2024-03-24 21:45:06 +01:00
|
|
|
</member>
|
|
|
|
<member name="mode" type="int" setter="set_mode" getter="get_mode" enum="VertexLight2D.VertexLight2DMode" default="0">
|
2024-03-27 09:11:46 +01:00
|
|
|
The light's mode.
|
2024-03-24 21:45:06 +01:00
|
|
|
</member>
|
2024-03-27 08:06:09 +01:00
|
|
|
<member name="range" type="Vector2i" setter="set_range" getter="get_range" default="Vector2i( 32, 32 )">
|
2024-03-27 09:11:46 +01:00
|
|
|
The light's range.
|
2024-03-27 08:06:09 +01:00
|
|
|
</member>
|
2024-03-24 21:45:06 +01:00
|
|
|
<member name="z_range" type="Vector2i" setter="set_z_range" getter="get_z_range" default="Vector2i( -1024, 1024 )">
|
2024-03-27 09:11:46 +01:00
|
|
|
The light's z range.
|
2024-03-24 21:45:06 +01:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<constants>
|
|
|
|
<constant name="VERTEX_LIGHT_2D_MODE_ADD" value="0" enum="VertexLight2DMode">
|
2024-03-27 09:11:46 +01:00
|
|
|
The light's color gets added to the resulting colors.
|
2024-03-24 21:45:06 +01:00
|
|
|
</constant>
|
|
|
|
<constant name="VERTEX_LIGHT_2D_MODE_SUB" value="1" enum="VertexLight2DMode">
|
2024-03-27 09:11:46 +01:00
|
|
|
The light's color gets substracted to the resulting colors.
|
2024-03-24 21:45:06 +01:00
|
|
|
</constant>
|
|
|
|
<constant name="VERTEX_LIGHT_2D_MODE_MIX" value="2" enum="VertexLight2DMode">
|
2024-03-27 09:11:46 +01:00
|
|
|
The light's color gets blended with the resulting colors.
|
2024-03-24 21:45:06 +01:00
|
|
|
</constant>
|
|
|
|
</constants>
|
|
|
|
</class>
|