Skip to content

Commit

Permalink
fix: fixed llf-pbr interaction issue and re-enabled pbr. (#553)
Browse files Browse the repository at this point in the history
Co-authored-by: Ilya Perapechka <i_perapechka@wargaming.net>
  • Loading branch information
Jonahex and Ilya Perapechka authored Sep 23, 2024
1 parent 800798c commit 62d9e91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/State.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ void State::PostPostLoad()
else
logger::info("Skyrim Upscaler not detected");
Deferred::Hooks::Install();
//TruePBR::GetSingleton()->PostPostLoad();
TruePBR::GetSingleton()->PostPostLoad();
Streamline::InstallHooks();
}

Expand Down
2 changes: 1 addition & 1 deletion src/TruePBR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ struct BSLightingShader_SetupGeometry
}

shader->currentRawTechnique &= ~0b111000u;
shader->currentRawTechnique |= ((pass->numLights - 1) << 3);
shader->currentRawTechnique |= (std::min((pass->numLights - 1), 7) << 3);

func(shader, pass, renderFlags);

Expand Down

0 comments on commit 62d9e91

Please sign in to comment.