mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
78 lines
3.6 KiB
ReStructuredText
78 lines
3.6 KiB
ReStructuredText
:github_url: hide
|
|
|
|
.. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the WorldEnvironment.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_WorldEnvironment:
|
|
|
|
WorldEnvironment
|
|
================
|
|
|
|
**Inherits:** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
|
|
|
Default environment properties for the entire scene (post-processing effects, lighting and background settings).
|
|
|
|
Description
|
|
-----------
|
|
|
|
The ``WorldEnvironment`` node is used to configure the default :ref:`Environment<class_Environment>` for the scene.
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
Tutorials
|
|
---------
|
|
|
|
- :doc:`Environment and post-processing <../tutorials/3d/environment_and_post_processing>`
|
|
|
|
- `3D Material Testers Demo <https://godotengine.org/asset-library/asset/123>`__
|
|
|
|
- `2D HDR Demo <https://godotengine.org/asset-library/asset/110>`__
|
|
|
|
- `Third Person Shooter Demo <https://godotengine.org/asset-library/asset/678>`__
|
|
|
|
Properties
|
|
----------
|
|
|
|
+-------------------------------------------+-----------------------------------------------------------------------+
|
|
| :ref:`CameraEffects<class_CameraEffects>` | :ref:`camera_effects<class_WorldEnvironment_property_camera_effects>` |
|
|
+-------------------------------------------+-----------------------------------------------------------------------+
|
|
| :ref:`Environment<class_Environment>` | :ref:`environment<class_WorldEnvironment_property_environment>` |
|
|
+-------------------------------------------+-----------------------------------------------------------------------+
|
|
|
|
Property Descriptions
|
|
---------------------
|
|
|
|
.. _class_WorldEnvironment_property_camera_effects:
|
|
|
|
- :ref:`CameraEffects<class_CameraEffects>` **camera_effects**
|
|
|
|
+----------+---------------------------+
|
|
| *Setter* | set_camera_effects(value) |
|
|
+----------+---------------------------+
|
|
| *Getter* | get_camera_effects() |
|
|
+----------+---------------------------+
|
|
|
|
----
|
|
|
|
.. _class_WorldEnvironment_property_environment:
|
|
|
|
- :ref:`Environment<class_Environment>` **environment**
|
|
|
|
+----------+------------------------+
|
|
| *Setter* | set_environment(value) |
|
|
+----------+------------------------+
|
|
| *Getter* | get_environment() |
|
|
+----------+------------------------+
|
|
|
|
The :ref:`Environment<class_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.)`
|