Skip to content

Components

AmbientLight

The colour a room's unlit pixels are left at, before any Light brightens them back up. Disabling it falls back to a dim default rather than full brightness, since a powered-down room should not get lighter.

On this page

Add it

+ Add node → Ambient Light creates a node with it already on. Already have a node for it? Add component → AmbientLightComponent.

From a script

A script on the same node writes these fields by name. AmbientLightComponent is the name to pass.

rgs
set_flag("AmbientLightComponent", "enabled", true);
set_colour("AmbientLightComponent", "color", vec4(0.1, 0.12, 0.2, 1.0));

Fields

FieldScript nameKindDefaultWhat it does
EnabledenabledcheckboxonWhether this node sets the room's ambient.
Colorcolorcolour#1a1f33The colour unlit areas are left at. Alpha is ignored.