mkxp/shader/flashMap.frag

14 lines
169 B
GLSL
Raw Normal View History

uniform float alpha;
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;
}