diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-06-23 18:14:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-23 18:14:59 +0200 |
commit | 3cb153f746a41be897200b0a99d7fc87d4064f50 (patch) | |
tree | 20baf18f93ebe6d2d535a111ef708d6ab16655ff | |
parent | d00632b6a286b7bdd723431fbfd698a30d51cff3 (diff) | |
parent | ccbf31685d075889dfe5d69bc25b6d0982267457 (diff) |
Merge pull request #49863 from groud/fix_mesh2d_modulation
Fixes Mesh2D drawn without modulation
-rw-r--r-- | servers/rendering/renderer_rd/shaders/canvas.glsl | 2 |
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; |