mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-03 09:51:53 +08:00
e4d04ff599
- 新增 SkillIcon.gd 脚本用于管理武器技能图标显示 - 修改 CooldownProgress.gdshader 增加背景透明度参数 - 更新 CooldownTimer.gd 添加时间计算方法 - 重构 SkillIconBase.tscn 场景以支持新功能
9 lines
230 B
Plaintext
9 lines
230 B
Plaintext
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;
|
|
}
|
|
} |