2017-09-12 20:42:36 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2022-02-14 13:18:53 +00:00
<class name= "SpotLight3D" inherits= "Light3D" version= "4.0" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2017-09-12 20:42:36 +00:00
<brief_description >
2019-06-21 23:04:47 +00:00
A spotlight, such as a reflector spotlight or a lantern.
2017-09-12 20:42:36 +00:00
</brief_description>
<description >
2020-03-30 16:22:57 +00:00
A Spotlight is a type of [Light3D] node that emits lights in a specific direction, in the shape of a cone. The light is attenuated through the distance. This attenuation can be configured by changing the energy, radius and attenuation parameters of [Light3D].
2017-09-12 20:42:36 +00:00
</description>
<tutorials >
2021-11-15 09:43:07 +00:00
<link title= "3D lights and shadows" > $DOCS_URL/tutorials/3d/lights_and_shadows.html</link>
2020-10-01 08:34:47 +00:00
<link title= "Third Person Shooter Demo" > https://godotengine.org/asset-library/asset/678</link>
2017-09-12 20:42:36 +00:00
</tutorials>
<members >
2021-12-02 19:38:49 +00:00
<member name= "shadow_bias" type= "float" setter= "set_param" getter= "get_param" overrides= "Light3D" default= "0.03" />
2022-12-05 20:44:23 +00:00
<member name= "shadow_normal_bias" type= "float" setter= "set_param" getter= "get_param" overrides= "Light3D" default= "1.0" />
2019-06-29 10:38:01 +00:00
<member name= "spot_angle" type= "float" setter= "set_param" getter= "get_param" default= "45.0" >
2019-06-21 23:04:47 +00:00
The spotlight's angle in degrees.
2022-10-08 21:11:49 +00:00
[b]Note:[/b] [member spot_angle] is not affected by [member Node3D.scale] (the light's scale or its parent's scale).
2017-09-12 20:42:36 +00:00
</member>
2019-06-29 10:38:01 +00:00
<member name= "spot_angle_attenuation" type= "float" setter= "set_param" getter= "get_param" default= "1.0" >
2019-06-21 23:04:47 +00:00
The spotlight's angular attenuation curve.
2017-09-12 20:42:36 +00:00
</member>
2019-06-29 10:38:01 +00:00
<member name= "spot_attenuation" type= "float" setter= "set_param" getter= "get_param" default= "1.0" >
2019-06-21 23:04:47 +00:00
The spotlight's light energy attenuation curve.
2017-09-12 20:42:36 +00:00
</member>
2019-06-29 10:38:01 +00:00
<member name= "spot_range" type= "float" setter= "set_param" getter= "get_param" default= "5.0" >
2020-06-10 08:07:38 +00:00
The maximal range that can be reached by the spotlight. Note that the effectively lit area may appear to be smaller depending on the [member spot_attenuation] in use. No matter the [member spot_attenuation] in use, the light will never reach anything outside this range.
2022-10-08 21:11:49 +00:00
[b]Note:[/b] [member spot_range] is not affected by [member Node3D.scale] (the light's scale or its parent's scale).
2017-09-12 20:42:36 +00:00
</member>
</members>
</class>