summaryrefslogtreecommitdiff
path: root/servers/rendering/renderer_rd/shaders
diff options
context:
space:
mode:
authorMiguel Gonzalez Sanchez <822035+bitbrain@users.noreply.github.com>2022-09-25 12:13:46 +0100
committerMiguel Gonzalez Sanchez <822035+bitbrain@users.noreply.github.com>2022-09-25 12:13:46 +0100
commit125f0be8b716978d639b49b873eb215eebe859e9 (patch)
tree5e633a4216747d497b3db0ef1064d26799aa4177 /servers/rendering/renderer_rd/shaders
parent15ac442247b2b45ae0e2900d18f26e5b82e6c011 (diff)
do not apply modulate on canvas when unshaded is set
Diffstat (limited to 'servers/rendering/renderer_rd/shaders')
-rw-r--r--servers/rendering/renderer_rd/shaders/canvas.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/renderer_rd/shaders/canvas.glsl b/servers/rendering/renderer_rd/shaders/canvas.glsl
index 459d798a80..a3734a7218 100644
--- a/servers/rendering/renderer_rd/shaders/canvas.glsl
+++ b/servers/rendering/renderer_rd/shaders/canvas.glsl
@@ -597,7 +597,7 @@ void main() {
#ifdef MODE_LIGHT_ONLY
color = vec4(0.0);
-#else
+#elif !defined(MODE_UNSHADED)
color *= canvas_data.canvas_modulation;
#endif