Mindustry/core/assets/shaders/default.frag

10 lines
257 B
GLSL
Raw Normal View History

2020-10-20 05:28:37 +07:00
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);
2020-10-28 02:08:53 +07:00
}