class_omnilight.rst 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. Member Functions
  13. ----------------
  14. +------------------------+--------------------------------------------------------------------------------------------------------+
  15. | :ref:`int<class_int>` | :ref:`get_shadow_detail<class_OmniLight_get_shadow_detail>` **(** **)** const |
  16. +------------------------+--------------------------------------------------------------------------------------------------------+
  17. | :ref:`int<class_int>` | :ref:`get_shadow_mode<class_OmniLight_get_shadow_mode>` **(** **)** const |
  18. +------------------------+--------------------------------------------------------------------------------------------------------+
  19. | void | :ref:`set_shadow_detail<class_OmniLight_set_shadow_detail>` **(** :ref:`int<class_int>` detail **)** |
  20. +------------------------+--------------------------------------------------------------------------------------------------------+
  21. | void | :ref:`set_shadow_mode<class_OmniLight_set_shadow_mode>` **(** :ref:`int<class_int>` mode **)** |
  22. +------------------------+--------------------------------------------------------------------------------------------------------+
  23. Member Variables
  24. ----------------
  25. - :ref:`float<class_float>` **omni_attenuation**
  26. - :ref:`float<class_float>` **omni_range**
  27. - :ref:`int<class_int>` **omni_shadow_detail**
  28. - :ref:`int<class_int>` **omni_shadow_mode**
  29. Numeric Constants
  30. -----------------
  31. - **SHADOW_DUAL_PARABOLOID** = **0**
  32. - **SHADOW_CUBE** = **1**
  33. - **SHADOW_DETAIL_VERTICAL** = **0**
  34. - **SHADOW_DETAIL_HORIZONTAL** = **1**
  35. Description
  36. -----------
  37. An OmniDirectional light is a type of :ref:`Light<class_light>` node that emits lights in all directions. The light is attenuated through the distance and this attenuation can be configured by changing the energy, radius and attenuation parameters of :ref:`Light<class_light>`.
  38. Member Function Description
  39. ---------------------------
  40. .. _class_OmniLight_get_shadow_detail:
  41. - :ref:`int<class_int>` **get_shadow_detail** **(** **)** const
  42. .. _class_OmniLight_get_shadow_mode:
  43. - :ref:`int<class_int>` **get_shadow_mode** **(** **)** const
  44. .. _class_OmniLight_set_shadow_detail:
  45. - void **set_shadow_detail** **(** :ref:`int<class_int>` detail **)**
  46. .. _class_OmniLight_set_shadow_mode:
  47. - void **set_shadow_mode** **(** :ref:`int<class_int>` mode **)**