mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-10 23:28:52 +07:00
9 lines
256 B
GLSL
9 lines
256 B
GLSL
varying lowp vec4 v_color;
|
|
varying lowp vec4 v_mix_color;
|
|
varying vec2 v_texCoords;
|
|
uniform sampler2D u_texture;
|
|
|
|
void main(){
|
|
vec4 c = texture2D(u_texture, v_texCoords);
|
|
gl_FragColor = v_color * mix(c, vec4(v_mix_color.rgb, c.a), v_mix_color.a);
|
|
} |