summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Roudière <gilles.roudiere@gmail.com>2021-06-23 17:38:31 +0200
committerGilles Roudière <gilles.roudiere@gmail.com>2021-06-23 17:38:31 +0200
commitccbf31685d075889dfe5d69bc25b6d0982267457 (patch)
treec9af3d25f2848274bb8f8fab576463be8d24af8a
parent52984a391570573aca421c66b397ad852f12ad21 (diff)
Fixes Mesh2D drawn without modulation
-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 2186bd174b..a443bcdcb8 100644
--- a/servers/rendering/renderer_rd/shaders/canvas.glsl
+++ b/servers/rendering/renderer_rd/shaders/canvas.glsl
@@ -65,7 +65,7 @@ void main() {
#elif defined(USE_ATTRIBUTES)
vec2 vertex = vertex_attrib;
- vec4 color = color_attrib;
+ vec4 color = color_attrib * draw_data.modulation;
vec2 uv = uv_attrib;
uvec4 bones = bone_attrib;