Browse Source

Merge pull request #49863 from groud/fix_mesh2d_modulation

Fixes Mesh2D drawn without modulation
Rémi Verschelde 4 years ago
parent
commit
3cb153f746
1 changed files with 1 additions and 1 deletions
  1. 1 1
      servers/rendering/renderer_rd/shaders/canvas.glsl

+ 1 - 1
servers/rendering/renderer_rd/shaders/canvas.glsl

@@ -65,7 +65,7 @@ void main() {
 #elif defined(USE_ATTRIBUTES)
 #elif defined(USE_ATTRIBUTES)
 
 
 	vec2 vertex = vertex_attrib;
 	vec2 vertex = vertex_attrib;
-	vec4 color = color_attrib;
+	vec4 color = color_attrib * draw_data.modulation;
 	vec2 uv = uv_attrib;
 	vec2 uv = uv_attrib;
 
 
 	uvec4 bones = bone_attrib;
 	uvec4 bones = bone_attrib;