Browse Source

Set ambient contribution by default to 1, fixes #11850

Juan Linietsky 7 years ago
parent
commit
09e6ce693d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      scene/resources/environment.cpp

+ 2 - 1
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;