mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-13 07:07:12 +08:00
13 lines
349 B
Plaintext
13 lines
349 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;
|
||
|
|
uniform float alpha:hint_range(0.0, 1.0, 0.1)=0.5;
|
||
|
|
void fragment() {
|
||
|
|
vec2 center=vec2(0.5);
|
||
|
|
float dist=distance(UV,center)*2.0;
|
||
|
|
if(dist<inner){
|
||
|
|
COLOR.a*=alpha;
|
||
|
|
}else{
|
||
|
|
COLOR.a*=float(inner<dist&&dist<outer);
|
||
|
|
}
|
||
|
|
}
|