Values

ClearColor

Clears the background using the clear color defined in .

Color

Clears the background using a custom clear color.

Sky

Displays a user-defined sky in the background.

ColorSky

Clears the background using a custom clear color and allows defining a sky for shading and reflection. This mode is slightly faster than godot.Environment_BGMode.sky and should be preferred in scenes where reflections can be visible, but the sky itself never is (e.g. top-down camera).

Canvas

Displays a godot.CanvasLayer in the background.

Keep

Keeps on screen every pixel drawn in the background. Only select this mode if you really need to keep the old data. On modern GPUs it will generally not be faster than clearing the background, and can be significantly slower, particularly on mobile.

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.

CameraFeed

Displays a camera feed in the background.

Max

Represents the size of the godot.Environment_BGMode enum.