mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-30 07:51:54 +08:00
5300144d96
- 修改彩虹子弹的着色器参数和颜色处理 - 更新光枪的着色器和材质参数 - 调整熊角色攻击时的子弹数量 - 优化粒子效果和材质设置
9 lines
308 B
Plaintext
9 lines
308 B
Plaintext
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);
|
|
} |