class_omnilight.rst 3.9 KB

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