From e4bbc5eee126899d2c10fd745d3fb9a362f99de9 Mon Sep 17 00:00:00 2001 From: "ALIENJACK\\alien" Date: Fri, 13 Sep 2024 13:57:02 +0800 Subject: [PATCH] =?UTF-8?q?XMB=E8=83=8C=E6=99=AFshader=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E8=87=AA=E5=B7=B1=E5=A3=B0=E6=98=8E=E7=9A=84lerp=E6=96=B9?= =?UTF-8?q?=E6=B3=95,=E4=BD=BF=E7=94=A8=E7=B3=BB=E7=BB=9Flerp=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Script/UI/XMBBackGround.shader | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/AxibugEmuOnline.Client/Assets/Script/UI/XMBBackGround.shader b/AxibugEmuOnline.Client/Assets/Script/UI/XMBBackGround.shader index fa75983..c335d2d 100644 --- a/AxibugEmuOnline.Client/Assets/Script/UI/XMBBackGround.shader +++ b/AxibugEmuOnline.Client/Assets/Script/UI/XMBBackGround.shader @@ -82,10 +82,6 @@ float4 _MainTex_ST; float4 _MainTex_TexelSize; - float3 lerp(float3 color1, float3 color2, float value) - { - return value * (color2 - color1) + color1; - } float wave(float x, float frequency, float speed, float midHeight, float maxHeight) { return (sin(frequency * (x + speed * (((1. - (pow(cos(0.002 * (_Time.y + 400.)), 2.) + 1.) / 2.) + .1) * 2048.))) * (maxHeight - midHeight)) + midHeight; @@ -123,7 +119,7 @@ float3 blue2 = float3(0, 0.7, 1); float amount = (uv.x + uv.y) / 2.0; float3 bg = lerp(blue2, blue, amount); - + // Overlayed sine waves float midHeight1 = 0.4; float maxHeight1 = 0.5 + wave(0.0, 4.0, 0.02, 0.0, 0.02);