fragment shader using alpha godot code example
Example: fragment shader using alpha godot
uniform texture diffuse;
color alpha = tex(diffuse, UV).rgba;
if (alpha.r == 1.0 && alpha.g == 0.0 && alpha.b == 1.0) {
alpha.a=0.0;
}
COLOR = alpha;
uniform texture diffuse;
color alpha = tex(diffuse, UV).rgba;
if (alpha.r == 1.0 && alpha.g == 0.0 && alpha.b == 1.0) {
alpha.a=0.0;
}
COLOR = alpha;