Files
Techmino/parts/shaders/alpha.glsl
2021-02-09 17:44:21 +08:00

4 lines
140 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);
}