class_light.rst 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the Light.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_Light:
  5. Light
  6. =====
  7. **Inherits:** :ref:`VisualInstance<class_visualinstance>` **<** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Inherited By:** :ref:`SpotLight<class_spotlight>`, :ref:`OmniLight<class_omnilight>`, :ref:`DirectionalLight<class_directionallight>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Provides a base class for different kinds of light nodes.
  13. Member Variables
  14. ----------------
  15. .. _class_Light_editor_only:
  16. - :ref:`bool<class_bool>` **editor_only**
  17. .. _class_Light_light_bake_mode:
  18. - :ref:`BakeMode<enum_light_bakemode>` **light_bake_mode**
  19. .. _class_Light_light_color:
  20. - :ref:`Color<class_color>` **light_color**
  21. .. _class_Light_light_cull_mask:
  22. - :ref:`int<class_int>` **light_cull_mask**
  23. .. _class_Light_light_energy:
  24. - :ref:`float<class_float>` **light_energy**
  25. .. _class_Light_light_indirect_energy:
  26. - :ref:`float<class_float>` **light_indirect_energy**
  27. .. _class_Light_light_negative:
  28. - :ref:`bool<class_bool>` **light_negative**
  29. .. _class_Light_light_specular:
  30. - :ref:`float<class_float>` **light_specular**
  31. .. _class_Light_shadow_bias:
  32. - :ref:`float<class_float>` **shadow_bias**
  33. .. _class_Light_shadow_color:
  34. - :ref:`Color<class_color>` **shadow_color**
  35. .. _class_Light_shadow_contact:
  36. - :ref:`float<class_float>` **shadow_contact**
  37. .. _class_Light_shadow_enabled:
  38. - :ref:`bool<class_bool>` **shadow_enabled**
  39. .. _class_Light_shadow_reverse_cull_face:
  40. - :ref:`bool<class_bool>` **shadow_reverse_cull_face**
  41. Enums
  42. -----
  43. .. _enum_Light_BakeMode:
  44. enum **BakeMode**
  45. - **BAKE_DISABLED** = **0**
  46. - **BAKE_INDIRECT** = **1**
  47. - **BAKE_ALL** = **2**
  48. .. _enum_Light_Param:
  49. enum **Param**
  50. - **PARAM_ENERGY** = **0**
  51. - **PARAM_INDIRECT_ENERGY** = **1**
  52. - **PARAM_SPECULAR** = **2**
  53. - **PARAM_RANGE** = **3**
  54. - **PARAM_ATTENUATION** = **4**
  55. - **PARAM_SPOT_ANGLE** = **5**
  56. - **PARAM_SPOT_ATTENUATION** = **6**
  57. - **PARAM_CONTACT_SHADOW_SIZE** = **7**
  58. - **PARAM_SHADOW_MAX_DISTANCE** = **8**
  59. - **PARAM_SHADOW_SPLIT_1_OFFSET** = **9**
  60. - **PARAM_SHADOW_SPLIT_2_OFFSET** = **10**
  61. - **PARAM_SHADOW_SPLIT_3_OFFSET** = **11**
  62. - **PARAM_SHADOW_NORMAL_BIAS** = **12**
  63. - **PARAM_SHADOW_BIAS** = **13**
  64. - **PARAM_SHADOW_BIAS_SPLIT_SCALE** = **14**
  65. - **PARAM_MAX** = **15**
  66. Description
  67. -----------
  68. Light is the abstract base class for light nodes, so it shouldn't be used directly (It can't be instanced). Other types of light nodes inherit from it. Light contains the common variables and parameters used for lighting.