Files
Techmino/parts/shaders/alpha.glsl
2021-08-28 16:46:10 +08:00

5 lines
144 B
GLSL

extern float a;
vec4 effect(vec4 color,Image tex,vec2 tex_coords,vec2 scr_coords){
return vec4(1.,1.,1.,sign(Texel(tex,tex_coords).a)*a);
}