mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
[ShadowCloneFallback] Initial Release
This commit is contained in:
parent
6c7a3259e7
commit
169df4ed33
6 changed files with 103 additions and 4 deletions
27
ShadowCloneFallback/Main.cs
Normal file
27
ShadowCloneFallback/Main.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
using ABI_RC.Core.Player.ShadowClone;
|
||||
using MelonLoader;
|
||||
|
||||
namespace NAK.ShadowCloneFallback;
|
||||
|
||||
public class ShadowCloneFallback : MelonMod
|
||||
{
|
||||
private const string SettingsCategory = nameof(ShadowCloneFallback);
|
||||
|
||||
private static readonly MelonPreferences_Category Category =
|
||||
MelonPreferences.CreateCategory(SettingsCategory);
|
||||
|
||||
private static readonly MelonPreferences_Entry<bool> EntryEnabled =
|
||||
Category.CreateEntry("Enabled", true, description: "Toggle ShadowCloneFallback entirely.");
|
||||
|
||||
public override void OnInitializeMelon()
|
||||
{
|
||||
ShadowCloneUtils.s_UseShaderClones = EntryEnabled.Value;
|
||||
EntryEnabled.OnEntryValueChanged.Subscribe(OnEnabledChanged);
|
||||
}
|
||||
|
||||
private void OnEnabledChanged(bool _, bool __)
|
||||
{
|
||||
ShadowCloneUtils.s_UseShaderClones = EntryEnabled.Value;
|
||||
LoggerInstance.Msg($"ShadowCloneUtils.s_UseShaderClones is now {(EntryEnabled.Value ? "enabled" : "disabled")}.");
|
||||
}
|
||||
}
|
30
ShadowCloneFallback/Properties/AssemblyInfo.cs
Normal file
30
ShadowCloneFallback/Properties/AssemblyInfo.cs
Normal file
|
@ -0,0 +1,30 @@
|
|||
using NAK.ShadowCloneFallback.Properties;
|
||||
using MelonLoader;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion(AssemblyInfoParams.Version)]
|
||||
[assembly: AssemblyFileVersion(AssemblyInfoParams.Version)]
|
||||
[assembly: AssemblyInformationalVersion(AssemblyInfoParams.Version)]
|
||||
[assembly: AssemblyTitle(nameof(NAK.ShadowCloneFallback))]
|
||||
[assembly: AssemblyCompany(AssemblyInfoParams.Author)]
|
||||
[assembly: AssemblyProduct(nameof(NAK.ShadowCloneFallback))]
|
||||
|
||||
[assembly: MelonInfo(
|
||||
typeof(NAK.ShadowCloneFallback.ShadowCloneFallback),
|
||||
nameof(NAK.ShadowCloneFallback),
|
||||
AssemblyInfoParams.Version,
|
||||
AssemblyInfoParams.Author,
|
||||
downloadLink: "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/ShadowCloneFallback"
|
||||
)]
|
||||
|
||||
[assembly: MelonGame("Alpha Blend Interactive", "ChilloutVR")]
|
||||
[assembly: MelonPlatform(MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)]
|
||||
[assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.MONO)]
|
||||
[assembly: HarmonyDontPatchAll]
|
||||
|
||||
namespace NAK.ShadowCloneFallback.Properties;
|
||||
internal static class AssemblyInfoParams
|
||||
{
|
||||
public const string Version = "1.0.0";
|
||||
public const string Author = "NotAKidoS";
|
||||
}
|
17
ShadowCloneFallback/README.md
Normal file
17
ShadowCloneFallback/README.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
# ShadowCloneFallback
|
||||
|
||||
Simple mod that exposes a toggle for the Fallback Shadow Clone implementation.
|
||||
By default, using this mod will enable the less-performant shadow clones. Only use this mod if you for whatever reason have issues with the compute shader clones.
|
||||
|
||||
Originally made the mod for debugging a potential crash a friend was experiencing, which turned out to be unrelated to the shader clones.
|
||||
|
||||
---
|
||||
|
||||
Here is the block of text where I tell you this mod is not affiliated with or endorsed by ABI.
|
||||
https://documentation.abinteractive.net/official/legal/tos/#7-modding-our-games
|
||||
|
||||
> This mod is an independent creation not affiliated with, supported by, or approved by Alpha Blend Interactive.
|
||||
|
||||
> Use of this mod is done so at the user's own risk and the creator cannot be held responsible for any issues arising from its use.
|
||||
|
||||
> To the best of my knowledge, I have adhered to the Modding Guidelines established by Alpha Blend Interactive.
|
2
ShadowCloneFallback/ShadowCloneFallback.csproj
Normal file
2
ShadowCloneFallback/ShadowCloneFallback.csproj
Normal file
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project Sdk="Microsoft.NET.Sdk"/>
|
23
ShadowCloneFallback/format.json
Normal file
23
ShadowCloneFallback/format.json
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"_id": -1,
|
||||
"name": "ShadowCloneFallback",
|
||||
"modversion": "1.0.0",
|
||||
"gameversion": "2024r175",
|
||||
"loaderversion": "0.6.1",
|
||||
"modtype": "Mod",
|
||||
"author": "NotAKidoS",
|
||||
"description": "Simple mod that exposes a toggle for the Fallback Shadow Clone implementation.\nBy default, using this mod will enable the less-performant shadow clones. Only use this mod if you for whatever reason have issues with the compute shader clones.",
|
||||
"searchtags": [
|
||||
"shadow",
|
||||
"clone",
|
||||
"compute",
|
||||
"shader"
|
||||
],
|
||||
"requirements": [
|
||||
"None"
|
||||
],
|
||||
"downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/r26/ShadowCloneFallback.dll",
|
||||
"sourcelink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/ShadowCloneFallback/",
|
||||
"changelog": "- Initial Release",
|
||||
"embedcolor": "#7d7e81"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue