diff --git a/src/games/silenthill2remake/0x063CCF18.cso b/src/games/silenthill2remake/0x063CCF18.cso index c22a4437..813cf345 100644 Binary files a/src/games/silenthill2remake/0x063CCF18.cso and b/src/games/silenthill2remake/0x063CCF18.cso differ diff --git a/src/games/silenthill2remake/0x18A5ACE1.cso b/src/games/silenthill2remake/0x18A5ACE1.cso index f9efd038..7a66588f 100644 Binary files a/src/games/silenthill2remake/0x18A5ACE1.cso and b/src/games/silenthill2remake/0x18A5ACE1.cso differ diff --git a/src/games/silenthill2remake/0x1BC9EFE2.cso b/src/games/silenthill2remake/0x1BC9EFE2.cso new file mode 100644 index 00000000..e72a8abf Binary files /dev/null and b/src/games/silenthill2remake/0x1BC9EFE2.cso differ diff --git a/src/games/silenthill2remake/0x1E7B589F.cso b/src/games/silenthill2remake/0x1E7B589F.cso index a37a4077..c62322e0 100644 Binary files a/src/games/silenthill2remake/0x1E7B589F.cso and b/src/games/silenthill2remake/0x1E7B589F.cso differ diff --git a/src/games/silenthill2remake/0x309584F8.cso b/src/games/silenthill2remake/0x309584F8.cso index 683631f1..24f800b4 100644 Binary files a/src/games/silenthill2remake/0x309584F8.cso and b/src/games/silenthill2remake/0x309584F8.cso differ diff --git a/src/games/silenthill2remake/0x39235257.cso b/src/games/silenthill2remake/0x39235257.cso index ea7b596e..8e31b7bf 100644 Binary files a/src/games/silenthill2remake/0x39235257.cso and b/src/games/silenthill2remake/0x39235257.cso differ diff --git a/src/games/silenthill2remake/0x394B5831.cso b/src/games/silenthill2remake/0x394B5831.cso new file mode 100644 index 00000000..8db85c54 Binary files /dev/null and b/src/games/silenthill2remake/0x394B5831.cso differ diff --git a/src/games/silenthill2remake/0x3CB03848.cso b/src/games/silenthill2remake/0x3CB03848.cso new file mode 100644 index 00000000..7823292e Binary files /dev/null and b/src/games/silenthill2remake/0x3CB03848.cso differ diff --git a/src/games/silenthill2remake/0x421733C7.cso b/src/games/silenthill2remake/0x421733C7.cso index 04e079db..92ddd8ad 100644 Binary files a/src/games/silenthill2remake/0x421733C7.cso and b/src/games/silenthill2remake/0x421733C7.cso differ diff --git a/src/games/silenthill2remake/0x43713652.cso b/src/games/silenthill2remake/0x43713652.cso new file mode 100644 index 00000000..41bfa606 Binary files /dev/null and b/src/games/silenthill2remake/0x43713652.cso differ diff --git a/src/games/silenthill2remake/0x4B7B660D.cso b/src/games/silenthill2remake/0x4B7B660D.cso new file mode 100644 index 00000000..4e9df021 Binary files /dev/null and b/src/games/silenthill2remake/0x4B7B660D.cso differ diff --git a/src/games/silenthill2remake/0x4CC68F73.cso b/src/games/silenthill2remake/0x4CC68F73.cso index 05c33dba..4567d376 100644 Binary files a/src/games/silenthill2remake/0x4CC68F73.cso and b/src/games/silenthill2remake/0x4CC68F73.cso differ diff --git a/src/games/silenthill2remake/0x507B8FB6.cso b/src/games/silenthill2remake/0x507B8FB6.cso index c4e7957e..88c6d983 100644 Binary files a/src/games/silenthill2remake/0x507B8FB6.cso and b/src/games/silenthill2remake/0x507B8FB6.cso differ diff --git a/src/games/silenthill2remake/0x68E782E2.cso b/src/games/silenthill2remake/0x68E782E2.cso index 9eade9b3..bcf600ce 100644 Binary files a/src/games/silenthill2remake/0x68E782E2.cso and b/src/games/silenthill2remake/0x68E782E2.cso differ diff --git a/src/games/silenthill2remake/0x72A44486.cso b/src/games/silenthill2remake/0x72A44486.cso index 222f5af9..431f0f43 100644 Binary files a/src/games/silenthill2remake/0x72A44486.cso and b/src/games/silenthill2remake/0x72A44486.cso differ diff --git a/src/games/silenthill2remake/0x77178C51.cso b/src/games/silenthill2remake/0x77178C51.cso index 2d43516b..4cab450a 100644 Binary files a/src/games/silenthill2remake/0x77178C51.cso and b/src/games/silenthill2remake/0x77178C51.cso differ diff --git a/src/games/silenthill2remake/0x82F211C7.cso b/src/games/silenthill2remake/0x82F211C7.cso new file mode 100644 index 00000000..bc671d2b Binary files /dev/null and b/src/games/silenthill2remake/0x82F211C7.cso differ diff --git a/src/games/silenthill2remake/0x865E53FC.cso b/src/games/silenthill2remake/0x865E53FC.cso index c7c3bd7b..923c09af 100644 Binary files a/src/games/silenthill2remake/0x865E53FC.cso and b/src/games/silenthill2remake/0x865E53FC.cso differ diff --git a/src/games/silenthill2remake/0x95CC270F.cso b/src/games/silenthill2remake/0x95CC270F.cso new file mode 100644 index 00000000..3de54ed7 Binary files /dev/null and b/src/games/silenthill2remake/0x95CC270F.cso differ diff --git a/src/games/silenthill2remake/0x99145AE9.cso b/src/games/silenthill2remake/0x99145AE9.cso index 2f4315f0..7d208da5 100644 Binary files a/src/games/silenthill2remake/0x99145AE9.cso and b/src/games/silenthill2remake/0x99145AE9.cso differ diff --git a/src/games/silenthill2remake/0x9DF2DDD4.cso b/src/games/silenthill2remake/0x9DF2DDD4.cso index 4e413043..7042e88c 100644 Binary files a/src/games/silenthill2remake/0x9DF2DDD4.cso and b/src/games/silenthill2remake/0x9DF2DDD4.cso differ diff --git a/src/games/silenthill2remake/0x9EB78561.cso b/src/games/silenthill2remake/0x9EB78561.cso index f298111c..b683c438 100644 Binary files a/src/games/silenthill2remake/0x9EB78561.cso and b/src/games/silenthill2remake/0x9EB78561.cso differ diff --git a/src/games/silenthill2remake/0xA0A20D27.cso b/src/games/silenthill2remake/0xA0A20D27.cso index 5b161a1e..455064c2 100644 Binary files a/src/games/silenthill2remake/0xA0A20D27.cso and b/src/games/silenthill2remake/0xA0A20D27.cso differ diff --git a/src/games/silenthill2remake/0xBBB5CA7B.cso b/src/games/silenthill2remake/0xBBB5CA7B.cso index 7da36b5c..9c68906d 100644 Binary files a/src/games/silenthill2remake/0xBBB5CA7B.cso and b/src/games/silenthill2remake/0xBBB5CA7B.cso differ diff --git a/src/games/silenthill2remake/0xBF32ABFA.cso b/src/games/silenthill2remake/0xBF32ABFA.cso new file mode 100644 index 00000000..321f4b9e Binary files /dev/null and b/src/games/silenthill2remake/0xBF32ABFA.cso differ diff --git a/src/games/silenthill2remake/0xC496B5C3.cso b/src/games/silenthill2remake/0xC496B5C3.cso index 48dd4a8f..f969f140 100644 Binary files a/src/games/silenthill2remake/0xC496B5C3.cso and b/src/games/silenthill2remake/0xC496B5C3.cso differ diff --git a/src/games/silenthill2remake/0xDA6D5332.cso b/src/games/silenthill2remake/0xDA6D5332.cso index b14abea1..5bda518c 100644 Binary files a/src/games/silenthill2remake/0xDA6D5332.cso and b/src/games/silenthill2remake/0xDA6D5332.cso differ diff --git a/src/games/silenthill2remake/0xFDFD3CB7.cso b/src/games/silenthill2remake/0xFDFD3CB7.cso index 8b16b242..389d0c33 100644 Binary files a/src/games/silenthill2remake/0xFDFD3CB7.cso and b/src/games/silenthill2remake/0xFDFD3CB7.cso differ diff --git a/src/games/silenthill2remake/README.md b/src/games/silenthill2remake/README.md index cd9551d1..40ed51f0 100644 --- a/src/games/silenthill2remake/README.md +++ b/src/games/silenthill2remake/README.md @@ -18,26 +18,25 @@ float3 ColorCorrectAll( float3 WorkingColor ) // Shadow CC + float4 ShadowOffset = ColorOffsetShadows+ColorOffset; -+ float4 GammaOffset = 0; -+ float4 ContrastOffset = 0; ++ float4 ShadowGammaOffset = 0; ++ float4 ShadowContrastOffset = 0; + if (injectedData.type > 0) { + if (any(saturate(ShadowOffset))) + { -+ ShadowOffset.xyz *= pow(saturate(WorkingColor.xyz), 1.f / 2.2f); -+ ShadowOffset.w *= pow(saturate(Luma), 1.f / 2.2f); -+ float4 OtherOffset = saturate((ColorOffsetShadows - ShadowOffset) * injectedData.magicNumber); ++ float4 OtherOffset = saturate((ShadowOffset) * injectedData.magicNumber); ++ ShadowOffset = 0; + if (injectedData.type == 2) { -+ GammaOffset = OtherOffset; ++ ShadowGammaOffset = OtherOffset; + } else if (injectedData.type == 3) { -+ ContrastOffset = -OtherOffset; ++ ShadowContrastOffset = -OtherOffset; + } + } + } + float3 CCColorShadows = ColorCorrect(WorkingColor, ColorSaturationShadows*ColorSaturation, - ColorContrastShadows*ColorContrast + ContrastOffset, - ColorGammaShadows*ColorGamma + GammaOffset, + ColorContrastShadows*ColorContrast + ShadowContrastOffset, + ColorGammaShadows*ColorGamma + ShadowGammaOffset, ColorGainShadows*ColorGain, - ColorOffsetShadows - ShadowOffset); + ShadowOffset); diff --git a/src/games/silenthill2remake/addon.cpp b/src/games/silenthill2remake/addon.cpp index fd73e956..c16910e0 100644 --- a/src/games/silenthill2remake/addon.cpp +++ b/src/games/silenthill2remake/addon.cpp @@ -28,6 +28,16 @@ #include #include #include + +#include +#include +#include +#include +#include +#include +#include +#include + #include #include "../../mods/shader.hpp" @@ -58,6 +68,15 @@ renodx::mods::shader::CustomShaders custom_shaders = { CustomShaderEntry(0x9EB78561), CustomShaderEntry(0xC496B5C3), CustomShaderEntry(0x39235257), + + CustomShaderEntry(0x1BC9EFE2), + CustomShaderEntry(0x3CB03848), + CustomShaderEntry(0x4B7B660D), + CustomShaderEntry(0x82F211C7), + CustomShaderEntry(0x95CC270F), + CustomShaderEntry(0x394B5831), + CustomShaderEntry(0x43713652), + CustomShaderEntry(0xBF32ABFA), }; ShaderInjectData shader_injection; @@ -139,9 +158,6 @@ BOOL APIENTRY DllMain(HMODULE h_module, DWORD fdw_reason, LPVOID lpv_reserved) { }; renodx::mods::shader::force_pipeline_cloning = true; renodx::mods::shader::expected_constant_buffer_space = 50; - //renodx::mods::swapchain::force_borderless = true; - //renodx::mods::swapchain::prevent_full_screen = true; - //renodx::mods::swapchain::SetUseHDR10(true); break; case DLL_PROCESS_DETACH: reshade::unregister_addon(h_module); @@ -149,7 +165,6 @@ BOOL APIENTRY DllMain(HMODULE h_module, DWORD fdw_reason, LPVOID lpv_reserved) { } renodx::mods::shader::Use(fdw_reason, custom_shaders, &shader_injection); - //renodx::mods::swapchain::Use(fdw_reason); renodx::utils::settings::Use(fdw_reason, &settings, &OnPresetOff); return TRUE;