Skip to content

Commit

Permalink
Merge pull request #53973 from nabfrew/nabf/light_hight_documentation
Browse files Browse the repository at this point in the history
Clarify lighting height documentation
  • Loading branch information
mhilbrunner authored Oct 26, 2021
2 parents 64faa37 + e2e77bb commit d9d5296
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/classes/DirectionalLight2D.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</tutorials>
<members>
<member name="height" type="float" setter="set_height" getter="get_height" default="0.0">
The height of the light. Used with 2D normal mapping.
The height of the light. Used with 2D normal mapping. Ranges from 0 (parallel to the plane) to 1 (perpendicular to the plane).
</member>
<member name="max_distance" type="float" setter="set_max_distance" getter="get_max_distance" default="10000.0">
</member>
Expand Down
2 changes: 1 addition & 1 deletion doc/classes/PointLight2D.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</tutorials>
<members>
<member name="height" type="float" setter="set_height" getter="get_height" default="0.0">
The height of the light. Used with 2D normal mapping.
The height of the light. Used with 2D normal mapping. The units are in pixels, e.g. if the height is 100, then it will illuminate an object 100 pixels away at a 45° angle to the plane.
</member>
<member name="offset" type="Vector2" setter="set_texture_offset" getter="get_texture_offset" default="Vector2(0, 0)">
The offset of the light's [member texture].
Expand Down

0 comments on commit d9d5296

Please sign in to comment.