1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-31 00:11:54 +08:00

feat(技能图标): 改进冷却进度视觉效果和样式

- 移除进度值的clamp限制,允许超出范围效果
- 为冷却进度着色器添加边缘高光和拖尾效果
- 调整图标容器圆角和最小尺寸
- 更新材质参数以支持新的着色器效果
This commit is contained in:
2025-09-06 16:40:25 +08:00
parent 60dac42141
commit 77f3d5e4a1
3 changed files with 16 additions and 7 deletions
+1 -1
View File
@@ -11,4 +11,4 @@ func _physics_process(_delta):
if is_instance_valid(weapon):
textureRect.texture = weapon.avatarTexture
var progress = weapon.cooldownTimer.timeSinceLastStart() / weapon.cooldownTimer.cooldown
textureRect.material.set_shader_parameter("progress", clamp(progress, 0, 1))
textureRect.material.set_shader_parameter("progress", progress)