From 569fb61771101be083fb9b533c9a4772d9185675 Mon Sep 17 00:00:00 2001 From: ThirteenAG Date: Mon, 17 Jun 2024 11:28:40 +0800 Subject: [PATCH] ini --- data/plugins/GTAIV.EFLC.FusionFix.ini | 4 ++-- source/shaders.ixx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/data/plugins/GTAIV.EFLC.FusionFix.ini b/data/plugins/GTAIV.EFLC.FusionFix.ini index 8b7f381d..fbd7efae 100644 --- a/data/plugins/GTAIV.EFLC.FusionFix.ini +++ b/data/plugins/GTAIV.EFLC.FusionFix.ini @@ -6,8 +6,8 @@ AimingZoomFix = 1 FlickeringShadowsFix = 1 // known issue: disables player shadow from headlights ExtraDynamicShadows = 1 // 1: restores some missing shadows | 2: also adds vegetation shadows | 3: forces all shadows to appear DynamicShadowForTrees = 1 -ShadowSoftness = 1.0 // multiplies shadow softness or blur intensity | [0.0; 8.0] -ShadowBias = 1.0 // multiplies shadow bias, adjust according to ShadowSoftness | [0.0; 8.0] +ShadowSoftness = 1.5 // multiplies shadow softness or blur intensity +ShadowBias = 5.0 // multiplies shadow bias, adjust according to ShadowSoftness ShadowBlendRange = 0.3 // controls the size of the cascade blending regions | [0.0; 1.0] HighResolutionShadows = 0 // doubles cascaded shadowmap resolution, very performance intensive LamppostShadows = 0 // 0: disables shadows cast by lamppost lights (console behavior), improves CPU performance | 1: enables shadows diff --git a/source/shaders.ixx b/source/shaders.ixx index a8d69363..ac09ab20 100644 --- a/source/shaders.ixx +++ b/source/shaders.ixx @@ -50,8 +50,8 @@ public: static bool bFixAutoExposure = false; static float fTreeAlphaMultiplier = 1.0f; - static float fShadowSoftness = 1.0f; - static float fShadowBias = 1.0f; + static float fShadowSoftness = 1.5f; + static float fShadowBias = 5.0f; static float fShadowBlendRange = 0.3f; FusionFix::onInitEvent() += []() @@ -59,8 +59,8 @@ public: CIniReader iniReader(""); bFixAutoExposure = iniReader.ReadInteger("MISC", "FixAutoExposure", 1) != 0; fTreeAlphaMultiplier = std::clamp(iniReader.ReadFloat("MISC", "TreeAlphaMultiplier", 1.0f), 1.0f, 255.0f); - fShadowSoftness = std::clamp(iniReader.ReadFloat("SHADOWS", "ShadowSoftness", 1.0f), 0.0f, 8.0f); - fShadowBias = std::clamp(iniReader.ReadFloat("SHADOWS", "ShadowBias", 1.0f), 0.0f, 8.0f); + fShadowSoftness = iniReader.ReadFloat("SHADOWS", "ShadowSoftness", 1.5f); + fShadowBias = iniReader.ReadFloat("SHADOWS", "ShadowBias", 5.0f); fShadowBlendRange = std::clamp(iniReader.ReadFloat("SHADOWS", "ShadowBlendRange", 0.3f), 0.0f, 1.0f); // Redirect path to one unified folder