|
|
|
|
Attention |
Topic was automatically imported from the old Question2Answer platform. |
|
Asked By |
kiside |
Hi everyone, I’m trying to set the parameter “color correction” with an image by script, but I can’t figure it out how I can do it.
Can anyone help me, pls?
|
|
|
|
Reply From: |
jtarallo |
var environment = $WorldEnvironment.get_environment()
var texture = load("res://path/to/texture.png")
environment.set_adjustment_enabled(true)
environment.set_adjustment_color_correction(texture)
Everything is in the documentation
Hope it helps
That was my first attempt and it didn’t work O.O but now it works without problems.Maybe I was tired when I tried the “set_adjustment_color_correction” and I made some mistakes.
Thank you for your help I really appreciate it
kiside | 2020-06-08 08:53
No problem man, glad to be of help
jtarallo | 2020-06-08 13:44