class_directionallight2d.rst 2.6 KB

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