1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-06 11:47:13 +08:00
Files
Dog-Lynx-And-HCN/shaders/Light.gdshader
T

8 lines
242 B
Plaintext
Raw Normal View History

shader_type canvas_item;
uniform vec4 color:source_color;
void fragment() {
float maxDistance=0.5;
float dist=distance(UV,vec2(0.5));
vec4 mixed=vec4(color.rgb,smoothstep(0,1,(maxDistance-dist)/maxDistance));
COLOR=mix(COLOR,mixed,0.5);
}