浏览代码

Merge pull request #102424 from Rudolph-B/Issue-102203

Fix over saturated static colored lights
Rémi Verschelde 7 月之前
父节点
当前提交
1eff938592
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/lightmapper_rd/lm_compute.glsl

+ 1 - 1
modules/lightmapper_rd/lm_compute.glsl

@@ -648,7 +648,7 @@ void trace_direct_light(vec3 p_position, vec3 p_normal, uint p_light_index, bool
 	}
 
 	r_shadow = penumbra;
-	r_light = light_data.color * light_data.energy * attenuation * penumbra * penumbra_color;
+	r_light = light_data.energy * attenuation * penumbra * penumbra_color;
 }
 
 #endif