class_directionallight.rst 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the DirectionalLight.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_DirectionalLight:
  5. DirectionalLight
  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. Directional Light, such as the Sun or the Moon.
  12. Member Variables
  13. ----------------
  14. .. _class_DirectionalLight_directional_shadow_bias_split_scale:
  15. - :ref:`float<class_float>` **directional_shadow_bias_split_scale**
  16. .. _class_DirectionalLight_directional_shadow_blend_splits:
  17. - :ref:`bool<class_bool>` **directional_shadow_blend_splits**
  18. .. _class_DirectionalLight_directional_shadow_depth_range:
  19. - :ref:`ShadowDepthRange<enum_directionallight_shadowdepthrange>` **directional_shadow_depth_range**
  20. .. _class_DirectionalLight_directional_shadow_max_distance:
  21. - :ref:`float<class_float>` **directional_shadow_max_distance**
  22. .. _class_DirectionalLight_directional_shadow_mode:
  23. - :ref:`ShadowMode<enum_directionallight_shadowmode>` **directional_shadow_mode**
  24. .. _class_DirectionalLight_directional_shadow_normal_bias:
  25. - :ref:`float<class_float>` **directional_shadow_normal_bias**
  26. .. _class_DirectionalLight_directional_shadow_split_1:
  27. - :ref:`float<class_float>` **directional_shadow_split_1**
  28. .. _class_DirectionalLight_directional_shadow_split_2:
  29. - :ref:`float<class_float>` **directional_shadow_split_2**
  30. .. _class_DirectionalLight_directional_shadow_split_3:
  31. - :ref:`float<class_float>` **directional_shadow_split_3**
  32. Enums
  33. -----
  34. .. _enum_DirectionalLight_ShadowDepthRange:
  35. enum **ShadowDepthRange**
  36. - **SHADOW_DEPTH_RANGE_STABLE** = **0**
  37. - **SHADOW_DEPTH_RANGE_OPTIMIZED** = **1**
  38. .. _enum_DirectionalLight_ShadowMode:
  39. enum **ShadowMode**
  40. - **SHADOW_ORTHOGONAL** = **0**
  41. - **SHADOW_PARALLEL_2_SPLITS** = **1**
  42. - **SHADOW_PARALLEL_4_SPLITS** = **2**
  43. Description
  44. -----------
  45. A DirectionalLight is a type of :ref:`Light<class_light>` node that emits light constantly in one direction (the negative z axis of the node). It is used lights with strong intensity that are located far away from the scene to model sunlight or moonlight. The worldspace location of the DirectionalLight transform (origin) is ignored, only the basis is used do determine light direction.