Simplify shader
This commit is contained in:
parent
b85988d194
commit
6b2c892280
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue