mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(角色): 为公鸡角色添加大激光武器并调整技能图标着色器
- 在公鸡角色中新增大激光武器 - 调整技能图标着色器参数,包括边缘高度和轨迹高度 - 移除着色器中未使用的轨迹颜色参数 - 优化粒子系统配置
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
shader_type canvas_item;
|
||||
uniform float progress:hint_range(-0.0, 2.0, 0.01)=0.5;
|
||||
uniform float backAlpha:hint_range(0.0, 1.0, 0.01)=0.1;
|
||||
uniform float edgeHeight:hint_range(0.0, 1.0, 0.01)=0.05;
|
||||
uniform float edgeHeight:hint_range(0.0, 1.0, 0.01)=0.06;
|
||||
uniform vec4 edgeColor:source_color;
|
||||
uniform float trailHeight:hint_range(0.0, 1.0, 0.01)=0.3;
|
||||
uniform vec4 trailColor:source_color;
|
||||
uniform float trailHeight:hint_range(0.0, 1.0, 0.01)=0.4;
|
||||
void fragment() {
|
||||
if(UV.y>=1.0-progress){
|
||||
if(1.0-progress+trailHeight-UV.y>0.0){
|
||||
float dist=distance(UV.y,1.0-progress);
|
||||
COLOR=mix(COLOR,trailColor*vec4(1,1,1,(trailHeight-dist)/trailHeight),1);
|
||||
if(distance(UV,vec2(0.5,0.5))>0.5-edgeHeight){
|
||||
COLOR=vec4(1,1,1,1);
|
||||
}else if(1.0-progress+trailHeight-UV.y>0.0){
|
||||
float dist=UV.y-(1.0-progress);
|
||||
COLOR=vec4(1,1,1,(trailHeight-dist)/trailHeight*0.8);
|
||||
}else{
|
||||
COLOR.a*=backAlpha;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user