Browse Source

Fix otherwise unset fragment alpha with VERTEX_COLOR defined.

Üstün Ergenoğlu 12 years ago
parent
commit
0fe94faec0
1 changed files with 1 additions and 0 deletions
  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