Decompiled source of NoShadowsMod v1.0.0

plugins/NoShadowsMod.dll

Decompiled a day ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("NoShadowsMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NoShadowsMod")]
[assembly: AssemblyCopyright("Copyright ©  2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("111fc7d7-46b0-4476-b14a-ba678b328717")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
[BepInPlugin("com.yourname.repo.noshadows", "No Shadows Mod", "1.0.0")]
public class NoShadowsMod : BaseUnityPlugin
{
	private void Start()
	{
		DisableAllShadows();
		((BaseUnityPlugin)this).Logger.LogInfo((object)"✅ تم تعطيل الظلال!");
	}

	private void DisableAllShadows()
	{
		Camera[] allCameras = Camera.allCameras;
		foreach (Camera val in allCameras)
		{
			val.renderingPath = (RenderingPath)1;
		}
		Light[] array = Object.FindObjectsOfType<Light>();
		foreach (Light val2 in array)
		{
			val2.shadows = (LightShadows)0;
		}
		QualitySettings.shadows = (ShadowQuality)0;
	}
}