Mindustry/core/assets/shaders/fog.fragment

16 lines
282 B
Plaintext
Raw Normal View History

2018-06-24 11:09:00 +07:00
#ifdef GL_ES
precision mediump float;
precision mediump int;
#endif
uniform sampler2D u_texture;
varying vec4 v_color;
varying vec2 v_texCoord;
void main() {
vec4 color = texture2D(u_texture, v_texCoord.xy);
color = vec4(0.0, 0.0, 0.0, 1.0 - color.r);
2019-02-09 05:05:09 +07:00
gl_FragColor = color;
2018-06-24 11:09:00 +07:00
}