Simple Circle Transition
A simple circle transition with 4 lines of code.
Credits to Bramwell Williams.
Shader code
// CC0 licence
// Credit Bramwell Williams
shader_type canvas_item;
uniform float circle_size : hint_range(0,1) = 0.5f;
void fragment(){
if (distance(vec2(0.5,0.5), UV) < circle_size){
COLOR.a = 0f;
}
}
In Godot 4, the line 10 has to be this:
to get rid of an error: invalid (float) numeric constant