From 4c23f94af954ede476f1a503e97bfaa0e3dde499 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 6 Jan 2018 19:34:03 -0300 Subject: [PATCH] properly blend interior and exterior ambient in reflection probes, fixes #14695 --- drivers/gles3/shaders/scene.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gles3/shaders/scene.glsl b/drivers/gles3/shaders/scene.glsl index afe70edd172..1aa28d0fd5f 100644 --- a/drivers/gles3/shaders/scene.glsl +++ b/drivers/gles3/shaders/scene.glsl @@ -2003,7 +2003,7 @@ FRAGMENT_SHADER_CODE } #ifndef USE_LIGHTMAP if (ambient_accum.a>0.0) { - ambient_light+=ambient_accum.rgb/ambient_accum.a; + ambient_light=ambient_accum.rgb/ambient_accum.a; } #endif