1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-07-05 01:32:13 +08:00

feat: 添加技能图标基础组件和冷却进度着色器

添加紫色水晶技能图标资源
创建冷却进度着色器用于显示技能冷却效果
实现基础技能图标组件,包含样式和着色器效果
This commit is contained in:
2025-09-06 14:52:42 +08:00
parent b6b37e3f1c
commit 41198cb51a
4 changed files with 74 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
shader_type canvas_item;
uniform float progress:hint_range(0.0, 1.0, 0.01)=0.5;
void fragment() {
COLOR=texture(TEXTURE,UV);
if(UV.y>=progress){
COLOR.a*=0.5;
}
}