use the computed value ambient_accum for ambient_light in scene_forward_mobile.glsl

This commit is contained in:
Priyansh Rathi 2022-03-05 14:22:14 +05:30
parent 0b08c4d3d4
commit 8c37cfa5bb
No known key found for this signature in database
GPG key ID: 8AB1FB727C1DBA82

View file

@ -1054,6 +1054,12 @@ void main() {
if (reflection_accum.a > 0.0) {
specular_light = reflection_accum.rgb / reflection_accum.a;
}
#if !defined(USE_LIGHTMAP)
if (ambient_accum.a > 0.0) {
ambient_light = ambient_accum.rgb / ambient_accum.a;
}
#endif
} //Reflection probes
// finalize ambient light here