1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2025-02-19 03:03:59 +07:00
Mindustry/core/assets/shaders/fog.fragment.glsl
2019-04-11 16:41:46 -04:00

15 lines
265 B
GLSL

#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);
gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0 - color.r);
}