summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-11-12 08:26:45 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-11-12 08:26:45 -0300
commit09e6ce693d0d69c81259fae280eea8fca81c4f47 (patch)
treebd2f193f9aaead7a633ce83cabf6eb6d714900ce
parent5dcfa8b615acac2587511597f4d680d804617e12 (diff)
Set ambient contribution by default to 1, fixes #11850
-rw-r--r--scene/resources/environment.cpp3
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;