Adjust brightness and contrast with sliders (2D)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By IvanVoirol

I think the title sums it up pretty well : is there an easy way to control gamma (or brightness) and contrast with sliders. I’m trying to make a settings menu, but I didn’t find anything helphful online yet.

Hi,
have a read here about environment

Environment and post-processing — Godot Engine (stable) documentation in English

The environment class has many options to tune brightness, exposure and alike

Environment — Godot Engine (stable) documentation in English

klaas | 2020-08-29 20:29

Just a quick question : is it working for 2d also?

IvanVoirol | 2020-08-29 20:44

Sorry, i’ve overead the 2D in the title. (convertet to comment)
No, i dont work with 2D.

If the visibilty modulate feature isnt enough for your needs you have to use a self made post process to do so.

klaas | 2020-08-29 21:00

I just found this post : https://forum.godotengine.org/28122/how-to-use-worldenvironment-node-in-2d
I applied the advice there to change the mode to canvas, and it works perfectly, so thank you!
I’m sorry but I can’t choose your answer as the solution to my problem, I don’t have the option anymore

IvanVoirol | 2020-08-29 21:03

nice one … didmnt know about that.

Ive reposted the answer and added your finding … for others to know

klaas | 2020-08-29 21:10

:bust_in_silhouette: Reply From: klaas

have a read here about environment

The environment class has many options to tune brightness, exposure and alike

IvanVoirol just found out!
Set mode to “canvas” to apply the settings to 2d

Nice teamwork

IvanVoirol | 2020-08-29 21:16