Skip to content

Commit

Permalink
ini
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG committed Jun 17, 2024
1 parent ae86624 commit 569fb61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions data/plugins/GTAIV.EFLC.FusionFix.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions source/shaders.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,17 @@ 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() += []()
{
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
Expand Down

0 comments on commit 569fb61

Please sign in to comment.