Bugbot/UI/ControllerInput/circle_backing.gdshader

8 lines
192 B
Plaintext

shader_type canvas_item;
void fragment() {
float dist = 1.0f - (distance(vec2(0.5f, 0.5f), UV.xy) * 2.0);
float value = smoothstep(0.0f, 0.01, dist);
COLOR = vec4(1.0, 1.0, 1.0, value);
}