Merge pull request #58779 from techiepriyansh/forward-mobile-ambient-accum

This commit is contained in:
Rémi Verschelde 2022-03-07 16:46:33 +01:00 committed by GitHub
commit f488a841c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1054,6 +1054,12 @@ void main() {
if (reflection_accum.a > 0.0) { if (reflection_accum.a > 0.0) {
specular_light = reflection_accum.rgb / reflection_accum.a; 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 } //Reflection probes
// finalize ambient light here // finalize ambient light here