Skip to reading
GDScript Programming & Godot

SetSceneBrightness()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Set Room Brightness

Change a scene's brightness multiplier.

Source table from SetSceneBrightness(), page 157
Option key / fieldMeaning and inputDefault
Scene sceneIdChoose a scene ID.Blank
Brightness (0 = Dark, 1 = Normal) brightnessNumber; decimals allowed.1.0

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await SetSceneBrightness({"sceneId": "lab", "brightness": 1.0})

In use. Darken the room slightly when the power fails. This is a broad rendering adjustment, not a command to move a light or create a reflective surface. Compare the result with exposure and renderer settings.

SetSceneTint()#

Set Room Tint

Apply a color tint to a scene with a chosen strength.

Source table from SetSceneBrightness(), page 157
Option key / fieldMeaning and inputDefault
Scene sceneIdChoose a scene ID.Blank
Tint Color tintColorColor picker or color string."#ffffff"
Tint Strength (0 = Off, 1 = Full) strengthNumber; decimals allowed. Range: 0.0 to 1.0.1.0

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await SetSceneTint({"sceneId": "lab", "tintColor": "#ffffff", "strength": 1.0})

In use. Use a pale blue tint for a cold room, then restore white or zero strength as appropriate. The tint affects presentation; it does not recolor imported source textures on disk.

Page 157 of 378Permalink
Go to page