1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-26 21:42:29 +08:00
Files
Dog-Lynx-And-HCN/shaders/CooldownProgress.gdshader
T

9 lines
230 B
Plaintext
Raw Normal View History

shader_type canvas_item;
uniform float progress:hint_range(0.0, 1.0, 0.01)=0.5;
uniform float backAlpha:hint_range(0.0, 1.0, 0.01)=0.25;
void fragment() {
COLOR=texture(TEXTURE,UV);
if(UV.y>=progress){
COLOR.a*=backAlpha;
}
}