using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using MelonLoader;
using MelonLoader.Preferences;
using UnityEngine;
using superglasses;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("SuperGlasses")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SuperGlasses")]
[assembly: AssemblyCopyright("Copyright © 2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("9eb5e0b5-f286-4256-8d88-039d075ded46")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: MelonInfo(typeof(blindasabatman), "SuperGlasses", "1.0.0", "bayturtleking", null)]
[assembly: MelonGame("SUPERHOT_Team", "SUPERHOT")]
[assembly: MelonAuthorColor(255, 200, 0, 220)]
[assembly: MelonPriority(99)]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace superglasses;
public static class buildinfo
{
public const string name = "SuperGlasses";
public const string version = "1.0.0";
public const string author = "bayturtleking";
}
public class blindasabatman : MelonMod
{
public static MelonPreferences_Category configcategory;
public static MelonPreferences_Entry<float> squintlevelentry;
public override void OnInitializeMelon()
{
configcategory = MelonPreferences.CreateCategory("SuperGlasses");
squintlevelentry = configcategory.CreateEntry<float>("squintlevel", 0.05f, "How Blurry", "Lower value is more blur. 0.01 is max, 1 is almost normal. Washed out effects will still apply, even with 1 as a value for this.", false, false, (ValueValidator)null, (string)null);
}
public override void OnUpdate()
{
Camera[] allCameras = Camera.allCameras;
foreach (Camera val in allCameras)
{
if ((Object)(object)((Component)val).GetComponent<imaginehavingglasses>() == (Object)null)
{
((Component)val).gameObject.AddComponent<imaginehavingglasses>();
}
}
}
}
public class imaginehavingglasses : MonoBehaviour
{
public float milkbathstrength = 0.05f;
private Texture2D gotmilk;
private void Awake()
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_000d: Expected O, but got Unknown
//IL_0015: Unknown result type (might be due to invalid IL or missing references)
gotmilk = new Texture2D(1, 1);
gotmilk.SetPixel(0, 0, Color.white);
gotmilk.Apply();
}
private void OnRenderImage(RenderTexture src, RenderTexture dest)
{
//IL_002f: Unknown result type (might be due to invalid IL or missing references)
float value = blindasabatman.squintlevelentry.Value;
int num = Mathf.Max(2, (int)((float)((Texture)src).width * value));
int num2 = Mathf.Max(2, (int)((float)((Texture)src).height * value));
RenderTexture temporary = RenderTexture.GetTemporary(num, num2, 0, src.format);
((Texture)temporary).filterMode = (FilterMode)1;
Graphics.Blit((Texture)(object)src, temporary);
Graphics.Blit((Texture)(object)temporary, dest);
RenderTexture.ReleaseTemporary(temporary);
}
private void OnGUI()
{
//IL_0000: Unknown result type (might be due to invalid IL or missing references)
//IL_001a: Unknown result type (might be due to invalid IL or missing references)
//IL_003a: Unknown result type (might be due to invalid IL or missing references)
Color color = GUI.color;
GUI.color = new Color(1f, 1f, 1f, milkbathstrength);
GUI.DrawTexture(new Rect(0f, 0f, (float)Screen.width, (float)Screen.height), (Texture)(object)gotmilk);
GUI.color = color;
}
}