76 lines
2.8 KiB
XML
76 lines
2.8 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="Light" inherits="VisualInstance" category="Core" version="3.0-beta">
|
|
<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>
|
|
</tutorials>
|
|
<demos>
|
|
</demos>
|
|
<methods>
|
|
</methods>
|
|
<members>
|
|
<member name="editor_only" type="bool" setter="set_editor_only" getter="is_editor_only">
|
|
</member>
|
|
<member name="light_color" type="Color" setter="set_color" getter="get_color">
|
|
</member>
|
|
<member name="light_cull_mask" type="int" setter="set_cull_mask" getter="get_cull_mask">
|
|
</member>
|
|
<member name="light_energy" type="float" setter="set_param" getter="get_param">
|
|
</member>
|
|
<member name="light_indirect_energy" type="float" setter="set_param" getter="get_param">
|
|
</member>
|
|
<member name="light_negative" type="bool" setter="set_negative" getter="is_negative">
|
|
</member>
|
|
<member name="light_specular" type="float" setter="set_param" getter="get_param">
|
|
</member>
|
|
<member name="shadow_bias" type="float" setter="set_param" getter="get_param">
|
|
</member>
|
|
<member name="shadow_color" type="Color" setter="set_shadow_color" getter="get_shadow_color">
|
|
</member>
|
|
<member name="shadow_contact" type="float" setter="set_param" getter="get_param">
|
|
</member>
|
|
<member name="shadow_enabled" type="bool" setter="set_shadow" getter="has_shadow">
|
|
</member>
|
|
<member name="shadow_reverse_cull_face" type="bool" setter="set_shadow_reverse_cull_face" getter="get_shadow_reverse_cull_face">
|
|
</member>
|
|
</members>
|
|
<constants>
|
|
<constant name="PARAM_ENERGY" value="0">
|
|
</constant>
|
|
<constant name="PARAM_INDIRECT_ENERGY" value="1">
|
|
</constant>
|
|
<constant name="PARAM_SPECULAR" value="2">
|
|
</constant>
|
|
<constant name="PARAM_RANGE" value="3">
|
|
</constant>
|
|
<constant name="PARAM_ATTENUATION" value="4">
|
|
</constant>
|
|
<constant name="PARAM_SPOT_ANGLE" value="5">
|
|
</constant>
|
|
<constant name="PARAM_SPOT_ATTENUATION" value="6">
|
|
</constant>
|
|
<constant name="PARAM_CONTACT_SHADOW_SIZE" value="7">
|
|
</constant>
|
|
<constant name="PARAM_SHADOW_MAX_DISTANCE" value="8">
|
|
</constant>
|
|
<constant name="PARAM_SHADOW_SPLIT_1_OFFSET" value="9">
|
|
</constant>
|
|
<constant name="PARAM_SHADOW_SPLIT_2_OFFSET" value="10">
|
|
</constant>
|
|
<constant name="PARAM_SHADOW_SPLIT_3_OFFSET" value="11">
|
|
</constant>
|
|
<constant name="PARAM_SHADOW_NORMAL_BIAS" value="12">
|
|
</constant>
|
|
<constant name="PARAM_SHADOW_BIAS" value="13">
|
|
</constant>
|
|
<constant name="PARAM_SHADOW_BIAS_SPLIT_SCALE" value="14">
|
|
</constant>
|
|
<constant name="PARAM_MAX" value="15">
|
|
</constant>
|
|
</constants>
|
|
</class>
|