From fea833734d5a4187cc0c4426b2f3e31b55232d71 Mon Sep 17 00:00:00 2001 From: "ALIENJACK\\alien" Date: Fri, 13 Sep 2024 14:24:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96shader=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Script/UI/XMBBackGround.shader | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/AxibugEmuOnline.Client/Assets/Script/UI/XMBBackGround.shader b/AxibugEmuOnline.Client/Assets/Script/UI/XMBBackGround.shader index c335d2d..0932bd2 100644 --- a/AxibugEmuOnline.Client/Assets/Script/UI/XMBBackGround.shader +++ b/AxibugEmuOnline.Client/Assets/Script/UI/XMBBackGround.shader @@ -138,10 +138,8 @@ float waveCol2 = waveColor(uv, waveHeight2, maxHeight2, frequency2, power2); float3 col = bg; - if (uv.y < waveHeight1) - col = waveCol1 * col; - if (uv.y < waveHeight2) - col = waveCol2 * col; + col = lerp(col, waveCol1 * col, step(uv.y, waveHeight1)); + col = lerp(col, waveCol2 * col, step(uv.y, waveHeight2)); // Output to screen fixed4 fragColor = float4(col,1.0);