[O] Disable MipMap

pull/55/head
Clansty 2024-09-29 13:03:54 +08:00
parent e7c69d2a6b
commit e9bac0a737
No known key found for this signature in database
GPG Key ID: 3A6BE8BAF2EDE134
2 changed files with 3 additions and 5 deletions

View File

@ -68,7 +68,7 @@ public class LoadAssetsPng
return null; return null;
} }
var texture = new Texture2D(1, 1); var texture = new Texture2D(1, 1, TextureFormat.RGBA32, false);
texture.LoadImage(File.ReadAllBytes(path)); texture.LoadImage(File.ReadAllBytes(path));
return texture; return texture;
} }
@ -125,7 +125,7 @@ public class LoadAssetsPng
var filename = genre.FileName.ToLowerInvariant(); var filename = genre.FileName.ToLowerInvariant();
var locPath = localAssetsContents.TryGetValue(filename, out var laPath) ? laPath : tabTitlePaths.GetValueOrDefault(filename); var locPath = localAssetsContents.TryGetValue(filename, out var laPath) ? laPath : tabTitlePaths.GetValueOrDefault(filename);
if (locPath is null) continue; if (locPath is null) continue;
var texture = new Texture2D(1, 1); var texture = new Texture2D(1, 1, TextureFormat.RGBA32, false);
texture.LoadImage(File.ReadAllBytes(locPath)); texture.LoadImage(File.ReadAllBytes(locPath));
____genreSprite[id] = Sprite.Create(texture, new Rect(0, 0, texture.width, texture.height), new Vector2(0.5f, 0.5f)); ____genreSprite[id] = Sprite.Create(texture, new Rect(0, 0, texture.width, texture.height), new Vector2(0.5f, 0.5f));
} }
@ -137,7 +137,7 @@ public class LoadAssetsPng
var filename = version.FileName.ToLowerInvariant(); var filename = version.FileName.ToLowerInvariant();
var locPath = localAssetsContents.TryGetValue(filename, out var laPath) ? laPath : tabTitlePaths.GetValueOrDefault(filename); var locPath = localAssetsContents.TryGetValue(filename, out var laPath) ? laPath : tabTitlePaths.GetValueOrDefault(filename);
if (locPath is null) continue; if (locPath is null) continue;
var texture = new Texture2D(1, 1); var texture = new Texture2D(1, 1, TextureFormat.RGBA32, false);
texture.LoadImage(File.ReadAllBytes(locPath)); texture.LoadImage(File.ReadAllBytes(locPath));
____versionSprite[id] = Sprite.Create(texture, new Rect(0, 0, texture.width, texture.height), new Vector2(0.5f, 0.5f)); ____versionSprite[id] = Sprite.Create(texture, new Rect(0, 0, texture.width, texture.height), new Vector2(0.5f, 0.5f));
} }

View File

@ -8,8 +8,6 @@ namespace AquaMai.Utils;
public class PractiseModeUI : MonoBehaviour public class PractiseModeUI : MonoBehaviour
{ {
private GUIWindow window;
private float playerWidth; private float playerWidth;
private float playerCenter; private float playerCenter;
private float windowTop; private float windowTop;