From f129651e99cddb2da4ff59716b7e28d59f0d6fdc Mon Sep 17 00:00:00 2001 From: "ALIENJACK\\alien" Date: Wed, 25 Dec 2024 14:41:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=86=97=E4=BD=99=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Script/AppMain/NesEmulator/UVRemapper.cs | 35 ------------------- .../AppMain/NesEmulator/UVRemapper.cs.meta | 2 -- 2 files changed, 37 deletions(-) delete mode 100644 AxibugEmuOnline.Client/Assets/Script/AppMain/NesEmulator/UVRemapper.cs delete mode 100644 AxibugEmuOnline.Client/Assets/Script/AppMain/NesEmulator/UVRemapper.cs.meta diff --git a/AxibugEmuOnline.Client/Assets/Script/AppMain/NesEmulator/UVRemapper.cs b/AxibugEmuOnline.Client/Assets/Script/AppMain/NesEmulator/UVRemapper.cs deleted file mode 100644 index d2c437a..0000000 --- a/AxibugEmuOnline.Client/Assets/Script/AppMain/NesEmulator/UVRemapper.cs +++ /dev/null @@ -1,35 +0,0 @@ -using UnityEngine; -using UnityEngine.UI; - -public class UVRemapper : BaseMeshEffect -{ - public Vector2 uvMin = new Vector2(0, 0); - public Vector2 uvMax = new Vector2(1, 1); - - public override void ModifyMesh(VertexHelper vh) - { - UIVertex vertex = new UIVertex(); - for (int i = 0; i < vh.currentVertCount; i++) - { - vh.PopulateUIVertex(ref vertex, i); - - switch (i % 4) - { - case 0: - vertex.uv0 = uvMin; - break; - case 1: - vertex.uv0 = new Vector2(uvMin.x, uvMax.y); - break; - case 2: - vertex.uv0 = uvMax; - break; - case 3: - vertex.uv0 = new Vector2(uvMax.x, uvMin.y); - break; - } - - vh.SetUIVertex(vertex, i); - } - } -} diff --git a/AxibugEmuOnline.Client/Assets/Script/AppMain/NesEmulator/UVRemapper.cs.meta b/AxibugEmuOnline.Client/Assets/Script/AppMain/NesEmulator/UVRemapper.cs.meta deleted file mode 100644 index 6334dbb..0000000 --- a/AxibugEmuOnline.Client/Assets/Script/AppMain/NesEmulator/UVRemapper.cs.meta +++ /dev/null @@ -1,2 +0,0 @@ -fileFormatVersion: 2 -guid: 68e8ce220f7d51548a7bbea061c7c70e \ No newline at end of file