Mindustry/core/assets/shaders/darkness.frag

12 lines
213 B
GLSL
Raw Normal View History

#define HIGHP
2018-06-24 11:09:00 +07:00
uniform sampler2D u_texture;
varying vec4 v_color;
2020-06-15 05:41:42 +07:00
varying vec2 v_texCoords;
2018-06-24 11:09:00 +07:00
void main(){
2020-06-15 05:41:42 +07:00
vec4 color = texture2D(u_texture, v_texCoords.xy);
gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0 - color.r);
2018-06-24 11:09:00 +07:00
}