Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
WorldEnvironment
整個場景的預設環境屬性,後期處理效果、照明和背景設定。
說明
WorldEnvironment 節點用於為場景配置預設的 Environment。
WorldEnvironment 中定義的參數可以被設定為目前的 Camera3D 上所設定的 Environment 資源覆蓋。此外,在一個給定場景中,同一時間只能產生實體一個 WorldEnvironment。
WorldEnvironment 允許使用者指定預設的照明參數(例如環境照明)、各種後處理效果(例如 SSAO、DOF、色調對應)、以及如何繪製背景(例如純色、天空盒)。通常,添加這些是為了提高場景的真實感/色彩平衡。
教學
屬性
屬性說明
CameraAttributes camera_attributes 🔗
void set_camera_attributes(value: CameraAttributes)
CameraAttributes get_camera_attributes()
Camera3D 上未設定時 CameraAttributes 時預設使用的資源。
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()
此 WorldEnvironment 世界環境所使用的 Environment 環境資源,定義預設屬性。