浏览代码

Merge pull request #49863 from groud/fix_mesh2d_modulation

Fixes Mesh2D drawn without modulation
Rémi Verschelde 4 年之前
父节点
当前提交
3cb153f746
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;