summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-26 08:24:45 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-26 08:24:45 +0200
commit5ae6379e5d1ec8d6ea53a2bd04f4302f0fe312ad (patch)
treed90231d91528d90b96506579f9ed6932d1d85b21 /servers
parentd437a5858e5456e49cf882b3c177d0960fa7c9b4 (diff)
parent125f0be8b716978d639b49b873eb215eebe859e9 (diff)
Merge pull request #66394 from bitbrain/fix-unshaded-canvas-modulate
Fix Unshaded CanvasItem for Vulkan
Diffstat (limited to 'servers')
-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