Skip to content

Commit

Permalink
fix mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG committed Mar 22, 2024
1 parent 1546d10 commit 873f9a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/shaders.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public:
break;
}

arr5[1] = static_cast<float>(FusionFixSettings.Get("PREF_PCSS"));
arr5[1] = static_cast<float>(FusionFixSettings.Get("PREF_SHADOW_QUALITY"));
arr5[2] = 1.0f / (30.0f * Natives::Timestep());
arr5[3] = bFixCascadedShadowMapResolution ? 2.0f : 1.0f;
pDevice->SetPixelShaderConstantF(221, &arr5[0], 1);
Expand Down Expand Up @@ -174,7 +174,7 @@ public:
static auto definition = FusionFixSettings.GetRef("PREF_DEFINITION");
static float arr4[4];
arr4[0] = static_cast<float>(tree_lighting->get() - FusionFixSettings.TreeFxText.ePC);
arr4[1] = 0.0f;
arr4[1] = static_cast<float>(FusionFixSettings.Get("PREF_PCSS"));
arr4[2] = static_cast<float>(definition->get() - FusionFixSettings.DefinitionText.eClassic);
arr4[3] = (((hour == 6 && minute >= 45) || (hour > 6)) && ((hour == 19 && minute < 15) || (hour < 19))) ? 0.0f : 1.0f;
pDevice->SetPixelShaderConstantF(223, &arr4[0], 1);
Expand Down

0 comments on commit 873f9a4

Please sign in to comment.