Delete chromakey for Godot 4.3

In the settings, select the color you want to remove.

Use chromakey for sprite.

Shader code
shader_type canvas_item;

uniform vec4 colorForDelete: source_color;

void fragment() {
    if (COLOR == colorForDelete) {
        COLOR.a = 0.0;
    }
}
The shader code and all code snippets in this post are under CC0 license and can be used freely without the author's permission. Images and videos, and assets depicted in those, do not fall under this license. For more info, see our License terms.

More from BananaBoy

Chromakey for Godot 4.3

Pixel Water for Godot 4.3

Related shaders

Chromakey for Godot 4.3

Aliens Style Motion Tracker for Godot 4

Fnaf / Clickteam perspective (displacement) – Godot 4.2

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments