2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2018-02-27 13:40:43 +01:00
<class name= "Light" inherits= "VisualInstance" category= "Core" version= "3.1" >
2017-09-12 22:42:36 +02:00
<brief_description >
Provides a base class for different kinds of light nodes.
</brief_description>
<description >
Light is the abstract base class for light nodes, so it shouldn't be used directly (It can't be instanced). Other types of light nodes inherit from it. Light contains the common variables and parameters used for lighting.
</description>
<tutorials >
2018-06-11 13:35:44 +02:00
<link > http://docs.godotengine.org/en/3.0/tutorials/3d/lights_and_shadows.html</link>
2017-09-12 22:42:36 +02:00
</tutorials>
<demos >
</demos>
<methods >
</methods>
<members >
2017-09-13 08:49:40 +02:00
<member name= "editor_only" type= "bool" setter= "set_editor_only" getter= "is_editor_only" >
2018-08-19 06:29:12 +02:00
If [code]true[/code] the light only appears in the editor and will not be visible at runtime. Default value:[code]false[/code].
2017-09-12 22:42:36 +02:00
</member>
2017-12-16 20:34:16 +01:00
<member name= "light_bake_mode" type= "int" setter= "set_bake_mode" getter= "get_bake_mode" enum= "Light.BakeMode" >
2018-08-19 06:29:12 +02:00
The light's bake mode. See [enum BakeMode].
2017-12-16 20:34:16 +01:00
</member>
2017-09-13 08:49:40 +02:00
<member name= "light_color" type= "Color" setter= "set_color" getter= "get_color" >
2018-08-19 06:29:12 +02:00
The light's color.
2017-09-12 22:42:36 +02:00
</member>
2017-09-13 08:49:40 +02:00
<member name= "light_cull_mask" type= "int" setter= "set_cull_mask" getter= "get_cull_mask" >
2018-08-19 06:29:12 +02:00
The light will affect objects in the selected layers.
2017-09-12 22:42:36 +02:00
</member>
2017-09-13 08:49:40 +02:00
<member name= "light_energy" type= "float" setter= "set_param" getter= "get_param" >
2018-08-19 06:29:12 +02:00
The light's strength multiplier.
2017-09-12 22:42:36 +02:00
</member>
2017-11-24 09:16:27 +01:00
<member name= "light_indirect_energy" type= "float" setter= "set_param" getter= "get_param" >
2018-08-19 06:29:12 +02:00
Secondary multiplier used with indirect light (light bounces). This works in baked light or GIProbe.
2017-11-24 09:16:27 +01:00
</member>
2017-09-13 08:49:40 +02:00
<member name= "light_negative" type= "bool" setter= "set_negative" getter= "is_negative" >
2018-08-19 06:29:12 +02:00
If [code]true[/code] the light's effect is reversed, darkening areas and casting bright shadows. Default value: [code]false[/code].
2017-09-12 22:42:36 +02:00
</member>
2017-09-13 08:49:40 +02:00
<member name= "light_specular" type= "float" setter= "set_param" getter= "get_param" >
2018-08-19 06:29:12 +02:00
The intensity of the specular blob in objects affected by the light. At [code]0[/code] the light becomes a pure diffuse light.
2017-09-12 22:42:36 +02:00
</member>
2017-09-13 08:49:40 +02:00
<member name= "shadow_bias" type= "float" setter= "set_param" getter= "get_param" >
2018-08-19 06:29:12 +02:00
Used to adjust shadow appearance. Too small a value results in self shadowing, while too large a value causes shadows to separate from casters. Adjust as needed.
2017-09-12 22:42:36 +02:00
</member>
2017-09-13 08:49:40 +02:00
<member name= "shadow_color" type= "Color" setter= "set_shadow_color" getter= "get_shadow_color" >
2018-08-19 06:29:12 +02:00
The color of shadows cast by this light.
2017-09-12 22:42:36 +02:00
</member>
2017-09-13 08:49:40 +02:00
<member name= "shadow_contact" type= "float" setter= "set_param" getter= "get_param" >
2018-08-19 06:29:12 +02:00
Attempts to reduce [member shadow_bias] gap.
2017-09-12 22:42:36 +02:00
</member>
2017-09-13 08:49:40 +02:00
<member name= "shadow_enabled" type= "bool" setter= "set_shadow" getter= "has_shadow" >
2018-08-19 06:29:12 +02:00
If [code]true[/code] the light will cast shadows. Default value: [code]false[/code].
2017-09-12 22:42:36 +02:00
</member>
2017-09-13 08:49:40 +02:00
<member name= "shadow_reverse_cull_face" type= "bool" setter= "set_shadow_reverse_cull_face" getter= "get_shadow_reverse_cull_face" >
2017-09-12 22:42:36 +02:00
</member>
</members>
<constants >
2017-11-24 23:16:30 +01:00
<constant name= "PARAM_ENERGY" value= "0" enum= "Param" >
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PARAM_INDIRECT_ENERGY" value= "1" enum= "Param" >
2017-11-24 09:16:27 +01:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PARAM_SPECULAR" value= "2" enum= "Param" >
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PARAM_RANGE" value= "3" enum= "Param" >
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PARAM_ATTENUATION" value= "4" enum= "Param" >
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PARAM_SPOT_ANGLE" value= "5" enum= "Param" >
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PARAM_SPOT_ATTENUATION" value= "6" enum= "Param" >
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PARAM_CONTACT_SHADOW_SIZE" value= "7" enum= "Param" >
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PARAM_SHADOW_MAX_DISTANCE" value= "8" enum= "Param" >
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PARAM_SHADOW_SPLIT_1_OFFSET" value= "9" enum= "Param" >
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PARAM_SHADOW_SPLIT_2_OFFSET" value= "10" enum= "Param" >
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PARAM_SHADOW_SPLIT_3_OFFSET" value= "11" enum= "Param" >
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PARAM_SHADOW_NORMAL_BIAS" value= "12" enum= "Param" >
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PARAM_SHADOW_BIAS" value= "13" enum= "Param" >
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PARAM_SHADOW_BIAS_SPLIT_SCALE" value= "14" enum= "Param" >
2017-10-22 12:56:11 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PARAM_MAX" value= "15" enum= "Param" >
2017-09-12 22:42:36 +02:00
</constant>
2017-12-16 20:34:16 +01:00
<constant name= "BAKE_DISABLED" value= "0" enum= "BakeMode" >
2018-08-19 06:29:12 +02:00
Light is ignored when baking. Note: hiding a light does [i]not[/i] affect baking.
2017-12-16 20:34:16 +01:00
</constant>
<constant name= "BAKE_INDIRECT" value= "1" enum= "BakeMode" >
2018-08-19 06:29:12 +02:00
Only indirect lighting will be baked. Default value.
2017-12-16 20:34:16 +01:00
</constant>
<constant name= "BAKE_ALL" value= "2" enum= "BakeMode" >
2018-08-19 06:29:12 +02:00
Both direct and indirect light will be baked. Note: you should hide the light if you don't want it to appear twice (dynamic and baked).
2017-12-16 20:34:16 +01:00
</constant>
2017-09-12 22:42:36 +02:00
</constants>
</class>