1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-29 15:02:29 +08:00

feat: 添加VerticalSoften着色器,增强透明度控制逻辑

This commit is contained in:
2025-09-06 20:41:48 +08:00
parent d04b364d5d
commit 0f3dc2ca9f
11 changed files with 19 additions and 100 deletions
-1
View File
@@ -4,7 +4,6 @@ uniform float backAlpha:hint_range(0.0, 1.0, 0.01)=0.25;
uniform float edgeHeight:hint_range(0.0, 1.0, 0.01)=0.05;
uniform float trailHeight:hint_range(0.0, 1.0, 0.01)=0.3;
void fragment() {
COLOR=texture(TEXTURE,UV);
if(UV.y>=progress){
COLOR.a*=backAlpha;
}else if(distance(UV.y,progress)<edgeHeight){