Chromakey for Godot 4.3
chromakey shader for filling the sprite.
Aplicar a la textura que debe tener Chromakey.
Shader code
shader_type canvas_item;
uniform vec4 backgroundColor : source_color = vec4(0.0, 1.0, 0.0, 1.0);
void fragment() {
vec4 texColor = texture(TEXTURE, UV);
if (texColor.a == 0.0) {
COLOR = backgroundColor;
} else {
COLOR = texColor;
}
}