class_worldenvironment.rst 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/WorldEnvironment.xml.
  6. .. _class_WorldEnvironment:
  7. WorldEnvironment
  8. ================
  9. **Inherits:** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. Default environment properties for the entire scene (post-processing effects, lighting and background settings).
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. The **WorldEnvironment** node is used to configure the default :ref:`Environment<class_Environment>` for the scene.
  15. 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.
  16. 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.
  17. .. rst-class:: classref-introduction-group
  18. Tutorials
  19. ---------
  20. - :doc:`Environment and post-processing <../tutorials/3d/environment_and_post_processing>`
  21. - `3D Material Testers Demo <https://godotengine.org/asset-library/asset/123>`__
  22. - `2D HDR Demo <https://godotengine.org/asset-library/asset/110>`__
  23. - `Third Person Shooter Demo <https://godotengine.org/asset-library/asset/678>`__
  24. .. rst-class:: classref-reftable-group
  25. Properties
  26. ----------
  27. .. table::
  28. :widths: auto
  29. +-------------------------------------------------+-----------------------------------------------------------------------------+
  30. | :ref:`CameraAttributes<class_CameraAttributes>` | :ref:`camera_attributes<class_WorldEnvironment_property_camera_attributes>` |
  31. +-------------------------------------------------+-----------------------------------------------------------------------------+
  32. | :ref:`Environment<class_Environment>` | :ref:`environment<class_WorldEnvironment_property_environment>` |
  33. +-------------------------------------------------+-----------------------------------------------------------------------------+
  34. .. rst-class:: classref-section-separator
  35. ----
  36. .. rst-class:: classref-descriptions-group
  37. Property Descriptions
  38. ---------------------
  39. .. _class_WorldEnvironment_property_camera_attributes:
  40. .. rst-class:: classref-property
  41. :ref:`CameraAttributes<class_CameraAttributes>` **camera_attributes**
  42. .. rst-class:: classref-property-setget
  43. - void **set_camera_attributes** **(** :ref:`CameraAttributes<class_CameraAttributes>` value **)**
  44. - :ref:`CameraAttributes<class_CameraAttributes>` **get_camera_attributes** **(** **)**
  45. The default :ref:`CameraAttributes<class_CameraAttributes>` resource to use if none set on the :ref:`Camera3D<class_Camera3D>`.
  46. .. rst-class:: classref-item-separator
  47. ----
  48. .. _class_WorldEnvironment_property_environment:
  49. .. rst-class:: classref-property
  50. :ref:`Environment<class_Environment>` **environment**
  51. .. rst-class:: classref-property-setget
  52. - void **set_environment** **(** :ref:`Environment<class_Environment>` value **)**
  53. - :ref:`Environment<class_Environment>` **get_environment** **(** **)**
  54. The :ref:`Environment<class_Environment>` resource used by this **WorldEnvironment**, defining the default properties.
  55. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  56. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  57. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  58. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  59. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  60. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  61. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`