diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-03-07 16:46:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-07 16:46:33 +0100 |
commit | f488a841c7225a4d80abbc04c74079fbbac01c77 (patch) | |
tree | b190e8debd025e31dd64e4678b51635ac75c1a5a /servers/rendering/renderer_rd | |
parent | 1421ce67800087086b2757677e715fbeddb7872d (diff) | |
parent | 8c37cfa5bbed2044c95e4953b4f2662f2ce8496a (diff) |
Merge pull request #58779 from techiepriyansh/forward-mobile-ambient-accum
Diffstat (limited to 'servers/rendering/renderer_rd')
-rw-r--r-- | servers/rendering/renderer_rd/shaders/scene_forward_mobile.glsl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/servers/rendering/renderer_rd/shaders/scene_forward_mobile.glsl b/servers/rendering/renderer_rd/shaders/scene_forward_mobile.glsl index a1cf1d3c04..21b8f2d4b5 100644 --- a/servers/rendering/renderer_rd/shaders/scene_forward_mobile.glsl +++ b/servers/rendering/renderer_rd/shaders/scene_forward_mobile.glsl @@ -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 |