mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-10 15:19:24 +07:00
20 lines
350 B
Plaintext
20 lines
350 B
Plaintext
#ifdef GL_ES
|
|
precision mediump float;
|
|
precision mediump int;
|
|
#endif
|
|
|
|
uniform sampler2D u_texture;
|
|
uniform vec4 u_color;
|
|
|
|
varying vec4 v_color;
|
|
varying vec2 v_texCoord;
|
|
|
|
void main() {
|
|
|
|
vec4 c = texture2D(u_texture, v_texCoord.xy);
|
|
|
|
c = mix(c, vec4(u_color.r, u_color.g, u_color.b, c.a), v_color.a);
|
|
|
|
gl_FragColor = c * vec4(v_color.rgb, 1.0);
|
|
}
|