WorldEnvironment
Default environment properties for the entire scene (post-processing effects, lighting and background settings).
描述
The WorldEnvironment node is used to configure the default Environment
for the scene.
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.
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.
属性
属性说明
CameraAttributes
camera_attributes
void
set_camera_attributes ( value:CameraAttributes
)CameraAttributes
get_camera_attributes ( )
The default CameraAttributes
resource to use if none set on the Camera3D
.
Compositor
compositor
void
set_compositor ( value:Compositor
)Compositor
get_compositor ( )
The default Compositor
resource to use if none set on the Camera3D
.
Environment
environment
void
set_environment ( value:Environment
)Environment
get_environment ( )
The Environment
resource used by this WorldEnvironment, defining the default properties.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。