Skip to content
0.2.0-dev Download ZIP
27 lines ·2.0 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="WorldEnvironment" inherits="Node" api_type="core" keywords="background, sky" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Default environment properties for the entire scene (post-processing effects, lighting and background settings).
5 </brief_description>
6 <description>
7 The [WorldEnvironment] node is used to configure the default [Environment] for the scene.
8 The parameters defined in the [WorldEnvironment] can be overridden by an [Environment] node set on the current [Camera3D]. Additionally, only one [WorldEnvironment] may be instantiated in a given scene at a time.
9 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.
10 </description>
11 <tutorials>
12 <link title="Environment and post-processing">$DOCS_URL/tutorials/3d/environment_and_post_processing.html</link>
13 <link title="3D Material Testers Demo">https://godotengine.org/asset-library/asset/2742</link>
14 <link title="Third Person Shooter (TPS) Demo">https://godotengine.org/asset-library/asset/2710</link>
15 </tutorials>
16 <members>
17 <member name="camera_attributes" type="CameraAttributes" setter="set_camera_attributes" getter="get_camera_attributes">
18 The default [CameraAttributes] resource to use if none set on the [Camera3D].
19 </member>
20 <member name="compositor" type="Compositor" setter="set_compositor" getter="get_compositor">
21 The default [Compositor] resource to use if none set on the [Camera3D].
22 </member>
23 <member name="environment" type="Environment" setter="set_environment" getter="get_environment">
24 The [Environment] resource used by this [WorldEnvironment], defining the default properties.
25 </member>
26 </members>
27</class>