mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(角色): 为熊角色添加新的光枪攻击技能
添加新的光枪攻击类型(类型5),包括: - 新增光枪子弹预制体及脚本 - 添加光枪音效资源 - 在熊角色中实现光枪攻击逻辑 - 新增光枪轨迹着色器 - 配置攻击冷却时间为5500ms 光枪攻击会发射10-15发彩色追踪子弹,形成环绕效果
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
shader_type canvas_item;
|
||||
uniform vec4 color:source_color;
|
||||
void fragment() {
|
||||
vec2 center=vec2(UV.x,0.5);
|
||||
float maxDist=0.5;
|
||||
float dist=distance(UV,center);
|
||||
COLOR=color;
|
||||
COLOR.a*=(maxDist-dist)/maxDist;
|
||||
}
|
||||
Reference in New Issue
Block a user