Browse Source

Fix otherwise unset fragment alpha with VERTEX_COLOR defined.

Üstün Ergenoğlu 12 năm trước cách đây
mục cha
commit
0fe94faec0
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      gameplay/res/shaders/colored.frag

+ 1 - 0
gameplay/res/shaders/colored.frag

@@ -112,6 +112,7 @@ void main()
     
     #if defined(VERTEX_COLOR)
     gl_FragColor.rgb = v_color;
+    gl_FragColor.a = 1.0;
     #else
     gl_FragColor = u_diffuseColor;
     #endif