From c6900a75360d31a2eb4a494c4c6438610c92ae37 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Thu, 25 Jun 2026 15:14:11 -0400 Subject: Cleanup Signed-off-by: Andrew Opalach --- Plugin.cs | 18 +++++++++--------- README.txt | 1 + Shaders/cube_only.diff | 15 --------------- Shaders/cube_only_ignore_cutout.diff | 15 +++++++++++++++ Shaders/sslr.diff | 15 --------------- Shaders/sslr_ignore_cutout.diff | 15 +++++++++++++++ 6 files changed, 40 insertions(+), 39 deletions(-) delete mode 100644 Shaders/cube_only.diff create mode 100644 Shaders/cube_only_ignore_cutout.diff delete mode 100644 Shaders/sslr.diff create mode 100644 Shaders/sslr_ignore_cutout.diff diff --git a/Plugin.cs b/Plugin.cs index 663ddd1..56be4f3 100755 --- a/Plugin.cs +++ b/Plugin.cs @@ -1888,6 +1888,14 @@ namespace WorldTuningTool private Patch ssrRes1; private Patch ssrRes2; private Patch ssrRes3; + private Patch ssrShr1; + private Patch ssrShr2; + private Patch ssrShr3; + private Patch ssrShr4; + private Patch ssrShr5; + private Patch ssrShr6; + private Patch ssrShr7; + private Patch ssrShr8; private Patch ssrSars1; private Patch ssrSars2; private Patch ssrSars3; @@ -1914,14 +1922,6 @@ namespace WorldTuningTool private Patch ssrSars24; private Patch ssrSars25; private Patch ssrSars26; - private Patch ssrShr1; - private Patch ssrShr2; - private Patch ssrShr3; - private Patch ssrShr4; - private Patch ssrShr5; - private Patch ssrShr6; - private Patch ssrShr7; - private Patch ssrShr8; private bool fullResVolumeBlur = false; private Patch volumeSars1; @@ -3909,7 +3909,7 @@ namespace WorldTuningTool return true; } - private string shaderPath = "nativePC/plugins/CSharp/Shaders"; + private const string shaderPath = "nativePC/plugins/CSharp/Shaders"; private bool shadersLoadedOnce = false; public unsafe void OnCreateShader(ShaderInfo *info) { diff --git a/README.txt b/README.txt index 0c44d17..124bb8c 100644 --- a/README.txt +++ b/README.txt @@ -1,3 +1,4 @@ == World Tuning Tool +https://www.nexusmods.com/monsterhunterworld/mods/8627 + // vim: set syntax=asciidoc: diff --git a/Shaders/cube_only.diff b/Shaders/cube_only.diff deleted file mode 100644 index b5a5d20..0000000 --- a/Shaders/cube_only.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- a/cube_only.asm 2026-03-16 15:19:43.069124404 -0400 -+++ b/cube_only.asm 2026-03-16 15:19:22.487626653 -0400 -@@ -171,6 +52,12 @@ - rcp r1.w, r1.w - ld_indexable(texture2d)(float,float,float,float) r2.xyzw, r0.xyww, t2.xyzw - ld_indexable(texture2d)(float,float,float,float) r3.xyz, r0.xyww, t3.xywz -+ ieq r4.x, r3.z, l(0x3d60e0e1) -+ and r4.x, r4.x, l(0x00404040) -+ xor r3.z, r3.z, r4.x -+ ieq r4.x, r3.z, l(0x3cc0c0c1) -+ and r4.x, r4.x, l(0x00c04040) -+ xor r3.z, r3.z, r4.x - ld_indexable(texture2d)(float,float,float,float) r4.xyz, r0.xyww, t4.xyzw - ld_indexable(texture2d)(uint,uint,uint,uint) r0.z, r0.xyzw, t5.yzxw - add r0.w, -r3.z, l(1.000000) diff --git a/Shaders/cube_only_ignore_cutout.diff b/Shaders/cube_only_ignore_cutout.diff new file mode 100644 index 0000000..b5a5d20 --- /dev/null +++ b/Shaders/cube_only_ignore_cutout.diff @@ -0,0 +1,15 @@ +--- a/cube_only.asm 2026-03-16 15:19:43.069124404 -0400 ++++ b/cube_only.asm 2026-03-16 15:19:22.487626653 -0400 +@@ -171,6 +52,12 @@ + rcp r1.w, r1.w + ld_indexable(texture2d)(float,float,float,float) r2.xyzw, r0.xyww, t2.xyzw + ld_indexable(texture2d)(float,float,float,float) r3.xyz, r0.xyww, t3.xywz ++ ieq r4.x, r3.z, l(0x3d60e0e1) ++ and r4.x, r4.x, l(0x00404040) ++ xor r3.z, r3.z, r4.x ++ ieq r4.x, r3.z, l(0x3cc0c0c1) ++ and r4.x, r4.x, l(0x00c04040) ++ xor r3.z, r3.z, r4.x + ld_indexable(texture2d)(float,float,float,float) r4.xyz, r0.xyww, t4.xyzw + ld_indexable(texture2d)(uint,uint,uint,uint) r0.z, r0.xyzw, t5.yzxw + add r0.w, -r3.z, l(1.000000) diff --git a/Shaders/sslr.diff b/Shaders/sslr.diff deleted file mode 100644 index 041d01c..0000000 --- a/Shaders/sslr.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- a/sslr.asm 2026-03-16 15:19:48.982185265 -0400 -+++ b/sslr.asm 2026-03-16 15:19:28.862978198 -0400 -@@ -246,6 +90,12 @@ - mov [precise(zw)] r0.zw, l(0,0,0,0) - ld_indexable [precise(yw)](texture2d)(float,float,float,float) r1.xyzw, r0.xyww, t4.xyzw - ld_indexable [precise(xyw)](texture2d)(float,float,float,float) r2.xyzw, r0.xyww, t5.xyzw -+ ieq r4.x, r2.w, l(0x3d60e0e1) -+ and r4.x, r4.x, l(0x00404040) -+ xor r2.w, r2.w, r4.x -+ ieq r4.x, r2.w, l(0x3cc0c0c1) -+ and r4.x, r4.x, l(0x00c04040) -+ xor r2.w, r2.w, r4.x - ld_indexable [precise(xyz)](texture2d)(float,float,float,float) r3.xyz, r0.xyww, t6.xyzw - ld_indexable [precise(w)](texture2d)(uint,uint,uint,uint) r3.w, r0.xyww, t7.yzwx - mul [precise(w)] r1.w, r1.w, l(255.000000) diff --git a/Shaders/sslr_ignore_cutout.diff b/Shaders/sslr_ignore_cutout.diff new file mode 100644 index 0000000..ec97efd --- /dev/null +++ b/Shaders/sslr_ignore_cutout.diff @@ -0,0 +1,15 @@ +--- a/sslr_resolve.asm 2026-03-16 15:19:48.982185265 -0400 ++++ b/sslr_resolve.asm 2026-03-16 15:19:28.862978198 -0400 +@@ -246,6 +90,12 @@ + mov [precise(zw)] r0.zw, l(0,0,0,0) + ld_indexable [precise(yw)](texture2d)(float,float,float,float) r1.xyzw, r0.xyww, t4.xyzw + ld_indexable [precise(xyw)](texture2d)(float,float,float,float) r2.xyzw, r0.xyww, t5.xyzw ++ ieq r4.x, r2.w, l(0x3d60e0e1) ++ and r4.x, r4.x, l(0x00404040) ++ xor r2.w, r2.w, r4.x ++ ieq r4.x, r2.w, l(0x3cc0c0c1) ++ and r4.x, r4.x, l(0x00c04040) ++ xor r2.w, r2.w, r4.x + ld_indexable [precise(xyz)](texture2d)(float,float,float,float) r3.xyz, r0.xyww, t6.xyzw + ld_indexable [precise(w)](texture2d)(uint,uint,uint,uint) r3.w, r0.xyww, t7.yzwx + mul [precise(w)] r1.w, r1.w, l(255.000000) -- cgit v1.2.3-101-g0448