Up to date
This page is up to date for Godot 4.2
.
If you still find outdated information, please open an issue.
Environment¶
Inherits: Resource < RefCounted < Object
Resource for environment nodes (like WorldEnvironment) that define multiple rendering options.
Description¶
Resource for environment nodes (like WorldEnvironment) that define multiple environment operations (such as background Sky or Color, ambient light, fog, depth-of-field...). These parameters affect the final render of the scene. The order of these operations is:
Depth of Field Blur
Glow
Tonemap (Auto Exposure)
Adjustments
Tutorials¶
Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods¶
get_glow_level ( int idx ) const |
|
void |
set_glow_level ( int idx, float intensity ) |
Enumerations¶
enum BGMode:
BGMode BG_CLEAR_COLOR = 0
Clears the background using the clear color defined in ProjectSettings.rendering/environment/defaults/default_clear_color.
BGMode BG_COLOR = 1
Clears the background using a custom clear color.
BGMode BG_SKY = 2
Displays a user-defined sky in the background.
BGMode BG_CANVAS = 3
Displays a CanvasLayer in the background.
BGMode BG_KEEP = 4
Keeps on screen every pixel drawn in the background. This is the fastest background mode, but it can only be safely used in fully-interior scenes (no visible sky or sky reflections). If enabled in a scene where the background is visible, "ghost trail" artifacts will be visible when moving the camera.
BGMode BG_CAMERA_FEED = 5
Displays a camera feed in the background.