summaryrefslogtreecommitdiff
path: root/doc/classes/Light.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/Light.xml')
-rw-r--r--doc/classes/Light.xml17
1 files changed, 10 insertions, 7 deletions
diff --git a/doc/classes/Light.xml b/doc/classes/Light.xml
index ecbc07ba72..8acc4ff643 100644
--- a/doc/classes/Light.xml
+++ b/doc/classes/Light.xml
@@ -4,7 +4,7 @@
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.
+ 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>
<link>https://docs.godotengine.org/en/latest/tutorials/3d/lights_and_shadows.html</link>
@@ -13,7 +13,7 @@
</methods>
<members>
<member name="editor_only" type="bool" setter="set_editor_only" getter="is_editor_only">
- If [code]true[/code], the light only appears in the editor and will not be visible at runtime. Default value:[code]false[/code].
+ If [code]true[/code], the light only appears in the editor and will not be visible at runtime. Default value: [code]false[/code].
</member>
<member name="light_bake_mode" type="int" setter="set_bake_mode" getter="get_bake_mode" enum="Light.BakeMode">
The light's bake mode. See [enum BakeMode].
@@ -28,7 +28,7 @@
The light's strength multiplier.
</member>
<member name="light_indirect_energy" type="float" setter="set_param" getter="get_param">
- Secondary multiplier used with indirect light (light bounces). This works in baked light or GIProbe.
+ Secondary multiplier used with indirect light (light bounces). This works on both [BakedLightmap] and [GIProbe].
</member>
<member name="light_negative" type="bool" setter="set_negative" getter="is_negative">
If [code]true[/code], the light's effect is reversed, darkening areas and casting bright shadows. Default value: [code]false[/code].
@@ -37,7 +37,7 @@
The intensity of the specular blob in objects affected by the light. At [code]0[/code] the light becomes a pure diffuse light.
</member>
<member name="shadow_bias" type="float" setter="set_param" getter="get_param">
- 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.
+ 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.
</member>
<member name="shadow_color" type="Color" setter="set_shadow_color" getter="get_shadow_color">
The color of shadows cast by this light.
@@ -83,15 +83,18 @@
<constant name="PARAM_SHADOW_BIAS_SPLIT_SCALE" value="14" enum="Param">
</constant>
<constant name="PARAM_MAX" value="15" enum="Param">
+ Represents the size of the [enum Param] enum.
</constant>
<constant name="BAKE_DISABLED" value="0" enum="BakeMode">
- Light is ignored when baking. Note: hiding a light does [i]not[/i] affect baking.
+ Light is ignored when baking.
+ [b]Note:[/b] Hiding a light does [i]not[/i] affect baking.
</constant>
<constant name="BAKE_INDIRECT" value="1" enum="BakeMode">
- Only indirect lighting will be baked. Default value.
+ Only indirect lighting will be baked (default).
</constant>
<constant name="BAKE_ALL" value="2" enum="BakeMode">
- 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).
+ Both direct and indirect light will be baked.
+ [b]Note:[/b] You should hide the light if you don't want it to appear twice (dynamic and baked).
</constant>
</constants>
</class>