1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/shaders/Light.gdshader
T

9 lines
308 B
Plaintext
Raw Normal View History

shader_type canvas_item;
uniform vec4 color:source_color;
uniform float mixProgress:hint_range(0.0, 1.0, 0.01)=0.5;
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,mixProgress);
}