How to create a brightness slider?

Godot Version

v4.5.stable.official [876b29033]

Question

How to create a brightness slider? I create a horror game and very important add this function.

1 Like

Use a WorldEnvironment node and code a slider in the UI to adjust the tonemap_exposure property of the world env from somthing like 0.4 to 1.2

If you set WorldEnvironment > Environment > Adjustments > Enabled to true, you will be able to change brightness, contrast, and saturation programmatically.

For instance:

world_environment.environment.adjustment_brightness = 0.5

1 Like

I experienced some increased GPU loads when utilizing “Adjustments”. I guess, brightness, contrast & co are engine-level shaders there?

1 Like