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

feat(核弹): 添加核弹警告背景并调整爆炸效果

为核弹添加半透明警告背景环,调整爆炸震动强度从500降至300
新增填充环和光照着色器,用于视觉效果
将核弹作为公鸡角色的默认武器
This commit is contained in:
2025-09-24 22:08:01 +08:00
parent a8da3ef7cd
commit f16f26882b
5 changed files with 53 additions and 12 deletions
+9
View File
@@ -0,0 +1,9 @@
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);
}