:github_url: hide .. meta:: :keywords: background, sky .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/WorldEnvironment.xml. .. _class_WorldEnvironment: WorldEnvironment ================ **Inherits:** :ref:`Node` **<** :ref:`Object` Default environment properties for the entire scene (post-processing effects, lighting and background settings). .. rst-class:: classref-introduction-group Description ----------- The **WorldEnvironment** node is used to configure the default :ref:`Environment` for the scene. The parameters defined in the **WorldEnvironment** can be overridden by an :ref:`Environment` node set on the current :ref:`Camera3D`. Additionally, only one **WorldEnvironment** may be instantiated in a given scene at a time. 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. .. rst-class:: classref-introduction-group Tutorials --------- - :doc:`Environment and post-processing <../tutorials/3d/environment_and_post_processing>` - `3D Material Testers Demo `__ - `Third Person Shooter (TPS) Demo `__ .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +-------------------------------------------------+-----------------------------------------------------------------------------+ | :ref:`CameraAttributes` | :ref:`camera_attributes` | +-------------------------------------------------+-----------------------------------------------------------------------------+ | :ref:`Compositor` | :ref:`compositor` | +-------------------------------------------------+-----------------------------------------------------------------------------+ | :ref:`Environment` | :ref:`environment` | +-------------------------------------------------+-----------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_WorldEnvironment_property_camera_attributes: .. rst-class:: classref-property :ref:`CameraAttributes` **camera_attributes** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_camera_attributes**\ (\ value\: :ref:`CameraAttributes`\ ) - :ref:`CameraAttributes` **get_camera_attributes**\ (\ ) The default :ref:`CameraAttributes` resource to use if none set on the :ref:`Camera3D`. .. rst-class:: classref-item-separator ---- .. _class_WorldEnvironment_property_compositor: .. rst-class:: classref-property :ref:`Compositor` **compositor** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_compositor**\ (\ value\: :ref:`Compositor`\ ) - :ref:`Compositor` **get_compositor**\ (\ ) The default :ref:`Compositor` resource to use if none set on the :ref:`Camera3D`. .. rst-class:: classref-item-separator ---- .. _class_WorldEnvironment_property_environment: .. rst-class:: classref-property :ref:`Environment` **environment** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_environment**\ (\ value\: :ref:`Environment`\ ) - :ref:`Environment` **get_environment**\ (\ ) The :ref:`Environment` resource used by this **WorldEnvironment**, defining the default properties. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)` .. |void| replace:: :abbr:`void (No return value.)`