1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/shaders/LightTrack.gdshader
T
fallingshrimp e31fd1889e feat(角色): 为熊角色添加新的光枪攻击技能
添加新的光枪攻击类型(类型5),包括:
- 新增光枪子弹预制体及脚本
- 添加光枪音效资源
- 在熊角色中实现光枪攻击逻辑
- 新增光枪轨迹着色器
- 配置攻击冷却时间为5500ms

光枪攻击会发射10-15发彩色追踪子弹,形成环绕效果
2025-09-13 22:46:25 +08:00

9 lines
207 B
Plaintext

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;
}