summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-03-07 16:46:33 +0100
committerGitHub <noreply@github.com>2022-03-07 16:46:33 +0100
commitf488a841c7225a4d80abbc04c74079fbbac01c77 (patch)
treeb190e8debd025e31dd64e4678b51635ac75c1a5a /servers
parent1421ce67800087086b2757677e715fbeddb7872d (diff)
parent8c37cfa5bbed2044c95e4953b4f2662f2ce8496a (diff)
Merge pull request #58779 from techiepriyansh/forward-mobile-ambient-accum
Diffstat (limited to 'servers')
-rw-r--r--servers/rendering/renderer_rd/shaders/scene_forward_mobile.glsl6
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