mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-06 19:57:12 +08:00
8 lines
250 B
Plaintext
8 lines
250 B
Plaintext
|
|
shader_type canvas_item;
|
||
|
|
uniform float inner:hint_range(0.0, 1.0, 0.01)=0.5;
|
||
|
|
uniform float outer:hint_range(0.0, 1.0, 0.01)=0.75;
|
||
|
|
void fragment() {
|
||
|
|
vec2 center=vec2(0.5);
|
||
|
|
float dist=distance(UV,center)*2.0;
|
||
|
|
COLOR.a=float(inner<dist&&dist<outer);
|
||
|
|
}
|