summaryrefslogtreecommitdiff
path: root/drivers/gles3
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-01-06 19:34:03 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-01-06 19:34:03 -0300
commit4c23f94af954ede476f1a503e97bfaa0e3dde499 (patch)
treed57cda7aa246e5da3a103dd5cd36abca1aa754c3 /drivers/gles3
parentbfeaf27a3e41cd60ec7be4c1d88a3edd2c2a6d87 (diff)
properly blend interior and exterior ambient in reflection probes, fixes #14695
Diffstat (limited to 'drivers/gles3')
-rw-r--r--drivers/gles3/shaders/scene.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/shaders/scene.glsl b/drivers/gles3/shaders/scene.glsl
index afe70edd17..1aa28d0fd5 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