mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-27 22:41:56 +08:00
9 lines
207 B
Plaintext
9 lines
207 B
Plaintext
|
|
shader_type canvas_item;
|
||
|
|
uniform vec4 color:source_color;
|
||
|
|
void fragment() {
|
||
|
|
vec2 center=vec2(UV.x,0.5);
|
||
|
|
float maxDist=0.5;
|
||
|
|
float dist=distance(UV,center);
|
||
|
|
COLOR=color;
|
||
|
|
COLOR.a*=(maxDist-dist)/maxDist;
|
||
|
|
}
|