class_worldenvironment.rst 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. :github_url: hide
  2. .. meta::
  3. :keywords: background, sky
  4. .. DO NOT EDIT THIS FILE!!!
  5. .. Generated automatically from Godot engine sources.
  6. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  7. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/WorldEnvironment.xml.
  8. .. _class_WorldEnvironment:
  9. WorldEnvironment
  10. ================
  11. **Inherits:** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  12. Default environment properties for the entire scene (post-processing effects, lighting and background settings).
  13. .. rst-class:: classref-introduction-group
  14. Description
  15. -----------
  16. The **WorldEnvironment** node is used to configure the default :ref:`Environment<class_Environment>` for the scene.
  17. The parameters defined in the **WorldEnvironment** can be overridden by an :ref:`Environment<class_Environment>` node set on the current :ref:`Camera3D<class_Camera3D>`. Additionally, only one **WorldEnvironment** may be instantiated in a given scene at a time.
  18. The **WorldEnvironment** allows the user to specify default lighting parameters (e.g. ambient lighting), various post-processing effects (e.g. SSAO, DOF, Tonemapping), and how to draw the background (e.g. solid color, skybox). Usually, these are added in order to improve the realism/color balance of the scene.
  19. .. rst-class:: classref-introduction-group
  20. Tutorials
  21. ---------
  22. - :doc:`Environment and post-processing <../tutorials/3d/environment_and_post_processing>`
  23. - `3D Material Testers Demo <https://godotengine.org/asset-library/asset/2742>`__
  24. - `Third Person Shooter (TPS) Demo <https://godotengine.org/asset-library/asset/2710>`__
  25. .. rst-class:: classref-reftable-group
  26. Properties
  27. ----------
  28. .. table::
  29. :widths: auto
  30. +-------------------------------------------------+-----------------------------------------------------------------------------+
  31. | :ref:`CameraAttributes<class_CameraAttributes>` | :ref:`camera_attributes<class_WorldEnvironment_property_camera_attributes>` |
  32. +-------------------------------------------------+-----------------------------------------------------------------------------+
  33. | :ref:`Compositor<class_Compositor>` | :ref:`compositor<class_WorldEnvironment_property_compositor>` |
  34. +-------------------------------------------------+-----------------------------------------------------------------------------+
  35. | :ref:`Environment<class_Environment>` | :ref:`environment<class_WorldEnvironment_property_environment>` |
  36. +-------------------------------------------------+-----------------------------------------------------------------------------+
  37. .. rst-class:: classref-section-separator
  38. ----
  39. .. rst-class:: classref-descriptions-group
  40. Property Descriptions
  41. ---------------------
  42. .. _class_WorldEnvironment_property_camera_attributes:
  43. .. rst-class:: classref-property
  44. :ref:`CameraAttributes<class_CameraAttributes>` **camera_attributes** :ref:`🔗<class_WorldEnvironment_property_camera_attributes>`
  45. .. rst-class:: classref-property-setget
  46. - |void| **set_camera_attributes**\ (\ value\: :ref:`CameraAttributes<class_CameraAttributes>`\ )
  47. - :ref:`CameraAttributes<class_CameraAttributes>` **get_camera_attributes**\ (\ )
  48. The default :ref:`CameraAttributes<class_CameraAttributes>` resource to use if none set on the :ref:`Camera3D<class_Camera3D>`.
  49. .. rst-class:: classref-item-separator
  50. ----
  51. .. _class_WorldEnvironment_property_compositor:
  52. .. rst-class:: classref-property
  53. :ref:`Compositor<class_Compositor>` **compositor** :ref:`🔗<class_WorldEnvironment_property_compositor>`
  54. .. rst-class:: classref-property-setget
  55. - |void| **set_compositor**\ (\ value\: :ref:`Compositor<class_Compositor>`\ )
  56. - :ref:`Compositor<class_Compositor>` **get_compositor**\ (\ )
  57. The default :ref:`Compositor<class_Compositor>` resource to use if none set on the :ref:`Camera3D<class_Camera3D>`.
  58. .. rst-class:: classref-item-separator
  59. ----
  60. .. _class_WorldEnvironment_property_environment:
  61. .. rst-class:: classref-property
  62. :ref:`Environment<class_Environment>` **environment** :ref:`🔗<class_WorldEnvironment_property_environment>`
  63. .. rst-class:: classref-property-setget
  64. - |void| **set_environment**\ (\ value\: :ref:`Environment<class_Environment>`\ )
  65. - :ref:`Environment<class_Environment>` **get_environment**\ (\ )
  66. The :ref:`Environment<class_Environment>` resource used by this **WorldEnvironment**, defining the default properties.
  67. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  68. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  69. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  70. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  71. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  72. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  73. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  74. .. |void| replace:: :abbr:`void (No return value.)`