properly blend interior and exterior ambient in reflection probes, fixes #14695

This commit is contained in:
Juan Linietsky 2018-01-06 19:34:03 -03:00
parent bfeaf27a3e
commit 4c23f94af9

View File

@ -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