class_directionallight2d.rst 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/DirectionalLight2D.xml.
  6. .. _class_DirectionalLight2D:
  7. DirectionalLight2D
  8. ==================
  9. **Inherits:** :ref:`Light2D<class_Light2D>` **<** :ref:`Node2D<class_Node2D>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. Properties
  11. ----------
  12. +---------------------------+---------------------------------------------------------------------+-------------+
  13. | :ref:`float<class_float>` | :ref:`height<class_DirectionalLight2D_property_height>` | ``0.0`` |
  14. +---------------------------+---------------------------------------------------------------------+-------------+
  15. | :ref:`float<class_float>` | :ref:`max_distance<class_DirectionalLight2D_property_max_distance>` | ``10000.0`` |
  16. +---------------------------+---------------------------------------------------------------------+-------------+
  17. Property Descriptions
  18. ---------------------
  19. .. _class_DirectionalLight2D_property_height:
  20. - :ref:`float<class_float>` **height**
  21. +-----------+-------------------+
  22. | *Default* | ``0.0`` |
  23. +-----------+-------------------+
  24. | *Setter* | set_height(value) |
  25. +-----------+-------------------+
  26. | *Getter* | get_height() |
  27. +-----------+-------------------+
  28. The height of the light. Used with 2D normal mapping. Ranges from 0 (parallel to the plane) to 1 (perpendicular to the plane).
  29. ----
  30. .. _class_DirectionalLight2D_property_max_distance:
  31. - :ref:`float<class_float>` **max_distance**
  32. +-----------+-------------------------+
  33. | *Default* | ``10000.0`` |
  34. +-----------+-------------------------+
  35. | *Setter* | set_max_distance(value) |
  36. +-----------+-------------------------+
  37. | *Getter* | get_max_distance() |
  38. +-----------+-------------------------+
  39. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  40. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  41. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  42. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  43. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  44. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`