浏览代码

Set ambient contribution by default to 1, fixes #11850

Juan Linietsky 7 年之前
父节点
当前提交
09e6ce693d
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      scene/resources/environment.cpp

+ 2 - 1
scene/resources/environment.cpp

@@ -1184,7 +1184,8 @@ Environment::Environment() {
 	bg_energy = 1.0;
 	bg_energy = 1.0;
 	bg_canvas_max_layer = 0;
 	bg_canvas_max_layer = 0;
 	ambient_energy = 1.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;
 	tone_mapper = TONE_MAPPER_LINEAR;
 	tonemap_exposure = 1.0;
 	tonemap_exposure = 1.0;