diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-11-12 08:26:45 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-11-12 08:26:45 -0300 |
commit | 09e6ce693d0d69c81259fae280eea8fca81c4f47 (patch) | |
tree | bd2f193f9aaead7a633ce83cabf6eb6d714900ce | |
parent | 5dcfa8b615acac2587511597f4d680d804617e12 (diff) |
Set ambient contribution by default to 1, fixes #11850
-rw-r--r-- | scene/resources/environment.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/resources/environment.cpp b/scene/resources/environment.cpp index 232f690074..fe59450f2e 100644 --- a/scene/resources/environment.cpp +++ b/scene/resources/environment.cpp @@ -1184,7 +1184,8 @@ Environment::Environment() { bg_energy = 1.0; bg_canvas_max_layer = 0; ambient_energy = 1.0; - ambient_sky_contribution = 1.0; + //ambient_sky_contribution = 1.0; + set_ambient_light_sky_contribution(1.0); tone_mapper = TONE_MAPPER_LINEAR; tonemap_exposure = 1.0; |