mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-11 00:07:46 +07:00
17 lines
297 B
Plaintext
17 lines
297 B
Plaintext
![]() |
#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.a = 1.0 - color.r;
|
||
|
color.rgb = vec3(0.0);
|
||
|
gl_FragColor = color * v_color;
|
||
|
}
|