2024-03-27 12:26:20 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2024-04-26 17:32:25 +02:00
|
|
|
<class name="VertexLight3D" inherits="Spatial" version="4.4">
|
2024-03-27 12:26:20 +01:00
|
|
|
<brief_description>
|
2024-03-27 16:12:15 +01:00
|
|
|
A [Spatial] that manages a light in [VertexLights3DServer].
|
2024-03-27 12:26:20 +01:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2024-03-27 16:12:15 +01:00
|
|
|
A [Spatial] that manages a light in [VertexLights3DServer].
|
2024-03-27 12:26:20 +01:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
</methods>
|
|
|
|
<members>
|
|
|
|
<member name="attenuation" type="float" setter="set_attenuation" getter="get_attenuation" default="1.0">
|
|
|
|
The light's attenuation.
|
|
|
|
</member>
|
|
|
|
<member name="color" type="Color" setter="set_color" getter="get_color" default="Color( 1, 1, 1, 1 )">
|
|
|
|
The light's color.
|
|
|
|
</member>
|
|
|
|
<member name="enabled" type="bool" setter="set_enabled" getter="get_is_enabled" default="true">
|
|
|
|
WHether this light is enabled or not.
|
|
|
|
</member>
|
|
|
|
<member name="item_cull_mask" type="int" setter="set_item_cull_mask" getter="get_item_cull_mask" default="1">
|
|
|
|
The light's item cull mask.
|
|
|
|
</member>
|
|
|
|
<member name="mode" type="int" setter="set_mode" getter="get_mode" enum="VertexLight3D.VertexLight3DMode" default="0">
|
|
|
|
The light's mode.
|
|
|
|
</member>
|
2024-03-27 16:12:15 +01:00
|
|
|
<member name="range" type="float" setter="set_range" getter="get_range" default="5.0">
|
2024-03-27 12:26:20 +01:00
|
|
|
The light's range.
|
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<constants>
|
|
|
|
<constant name="VERTEX_LIGHT_3D_MODE_ADD" value="0" enum="VertexLight3DMode">
|
|
|
|
The light's color gets added to the resulting colors.
|
|
|
|
</constant>
|
|
|
|
<constant name="VERTEX_LIGHT_3D_MODE_SUB" value="1" enum="VertexLight3DMode">
|
|
|
|
The light's color gets substracted to the resulting colors.
|
|
|
|
</constant>
|
|
|
|
<constant name="VERTEX_LIGHT_3D_MODE_MIX" value="2" enum="VertexLight3DMode">
|
|
|
|
The light's color gets blended with the resulting colors.
|
|
|
|
</constant>
|
|
|
|
</constants>
|
|
|
|
</class>
|