Simplify shader

This commit is contained in:
Jonas Kulla 2013-09-23 14:11:51 +02:00
parent b85988d194
commit 6b2c892280
1 changed files with 1 additions and 5 deletions

View File

@ -5,9 +5,5 @@ varying vec4 v_color;
void main()
{
vec4 frag = vec4(0, 0, 0, 1);
frag.rgb = mix(vec3(0, 0, 0), v_color.rgb, alpha);
gl_FragColor = frag;
gl_FragColor = vec4(v_color.rgb * alpha, 1);
}