Mindustry/core/assets/shaders/fog.frag
Anuken b4573861a8 h i g h precision shaders
(I shouldn't need to do this)
2020-06-13 20:58:41 -04:00

12 lines
211 B
GLSL

#define HIGHP
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);
}