From 125f0be8b716978d639b49b873eb215eebe859e9 Mon Sep 17 00:00:00 2001 From: Miguel Gonzalez Sanchez <822035+bitbrain@users.noreply.github.com> Date: Sun, 25 Sep 2022 12:13:46 +0100 Subject: do not apply modulate on canvas when unshaded is set --- servers/rendering/renderer_rd/shaders/canvas.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'servers/rendering') 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 -- cgit v1.2.3