class_omnilight.rst 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the OmniLight.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_OmniLight:
  6. OmniLight
  7. =========
  8. **Inherits:** :ref:`Light<class_Light>` **<** :ref:`VisualInstance<class_VisualInstance>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Omnidirectional light, such as a light bulb or a candle.
  13. Properties
  14. ----------
  15. +--------------------------------------------------+------------------------------------------------------------------------+
  16. | :ref:`float<class_float>` | :ref:`omni_attenuation<class_OmniLight_property_omni_attenuation>` |
  17. +--------------------------------------------------+------------------------------------------------------------------------+
  18. | :ref:`float<class_float>` | :ref:`omni_range<class_OmniLight_property_omni_range>` |
  19. +--------------------------------------------------+------------------------------------------------------------------------+
  20. | :ref:`ShadowDetail<enum_OmniLight_ShadowDetail>` | :ref:`omni_shadow_detail<class_OmniLight_property_omni_shadow_detail>` |
  21. +--------------------------------------------------+------------------------------------------------------------------------+
  22. | :ref:`ShadowMode<enum_OmniLight_ShadowMode>` | :ref:`omni_shadow_mode<class_OmniLight_property_omni_shadow_mode>` |
  23. +--------------------------------------------------+------------------------------------------------------------------------+
  24. Enumerations
  25. ------------
  26. .. _enum_OmniLight_ShadowMode:
  27. .. _class_OmniLight_constant_SHADOW_DUAL_PARABOLOID:
  28. .. _class_OmniLight_constant_SHADOW_CUBE:
  29. enum **ShadowMode**:
  30. - **SHADOW_DUAL_PARABOLOID** = **0**
  31. - **SHADOW_CUBE** = **1**
  32. ----
  33. .. _enum_OmniLight_ShadowDetail:
  34. .. _class_OmniLight_constant_SHADOW_DETAIL_VERTICAL:
  35. .. _class_OmniLight_constant_SHADOW_DETAIL_HORIZONTAL:
  36. enum **ShadowDetail**:
  37. - **SHADOW_DETAIL_VERTICAL** = **0**
  38. - **SHADOW_DETAIL_HORIZONTAL** = **1**
  39. Description
  40. -----------
  41. An Omnidirectional light is a type of :ref:`Light<class_Light>` that emits light in all directions. The light is attenuated by distance and this attenuation can be configured by changing its energy, radius, and attenuation parameters.
  42. Tutorials
  43. ---------
  44. - :doc:`../tutorials/3d/lights_and_shadows`
  45. Property Descriptions
  46. ---------------------
  47. .. _class_OmniLight_property_omni_attenuation:
  48. - :ref:`float<class_float>` **omni_attenuation**
  49. +----------+------------------+
  50. | *Setter* | set_param(value) |
  51. +----------+------------------+
  52. | *Getter* | get_param() |
  53. +----------+------------------+
  54. The light's attenuation (drop-off) curve. A number of presets are available in the Inspector.
  55. ----
  56. .. _class_OmniLight_property_omni_range:
  57. - :ref:`float<class_float>` **omni_range**
  58. +----------+------------------+
  59. | *Setter* | set_param(value) |
  60. +----------+------------------+
  61. | *Getter* | get_param() |
  62. +----------+------------------+
  63. Maximum distance the light affects.
  64. ----
  65. .. _class_OmniLight_property_omni_shadow_detail:
  66. - :ref:`ShadowDetail<enum_OmniLight_ShadowDetail>` **omni_shadow_detail**
  67. +----------+--------------------------+
  68. | *Setter* | set_shadow_detail(value) |
  69. +----------+--------------------------+
  70. | *Getter* | get_shadow_detail() |
  71. +----------+--------------------------+
  72. See :ref:`ShadowDetail<enum_OmniLight_ShadowDetail>`.
  73. ----
  74. .. _class_OmniLight_property_omni_shadow_mode:
  75. - :ref:`ShadowMode<enum_OmniLight_ShadowMode>` **omni_shadow_mode**
  76. +----------+------------------------+
  77. | *Setter* | set_shadow_mode(value) |
  78. +----------+------------------------+
  79. | *Getter* | get_shadow_mode() |
  80. +----------+------------------------+
  81. See :ref:`ShadowMode<enum_OmniLight_ShadowMode>`.