Skip to content

Commit

Permalink
fix: fix references to obsolete variables, tidy up Skylighting class (#…
Browse files Browse the repository at this point in the history
…347)

* fix: fix references to obsolete variables, tidy up Skylighting class

* fix: add missing ssgi shader defines required by forward skylighting code
  • Loading branch information
Pentalimbed authored Jul 22, 2024
1 parent 8b913f1 commit 4d820b9
Show file tree
Hide file tree
Showing 4 changed files with 424 additions and 413 deletions.
4 changes: 2 additions & 2 deletions src/Deferred.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ void Deferred::UpdateConstantBuffer()
auto imageSpaceManager = RE::ImageSpaceManager::GetSingleton();

auto useTAA = !REL::Module::IsVR() ? imageSpaceManager->GetRuntimeData().BSImagespaceShaderISTemporalAA->taaEnabled : imageSpaceManager->GetVRRuntimeData().BSImagespaceShaderISTemporalAA->taaEnabled;
data.FrameCount = useTAA ? RE::BSGraphics::State::GetSingleton()->uiFrameCount : 0;
data.FrameCountAlwaysActive = RE::BSGraphics::State::GetSingleton()->uiFrameCount;
data.FrameCount = useTAA ? RE::BSGraphics::State::GetSingleton()->frameCount : 0;
data.FrameCountAlwaysActive = RE::BSGraphics::State::GetSingleton()->frameCount;

deferredCB->Update(data);
}
Expand Down
7 changes: 7 additions & 0 deletions src/Features/ScreenSpaceGI.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ struct ScreenSpaceGI : Feature

virtual inline std::string GetName() override { return "Screen Space GI"; }
virtual inline std::string GetShortName() override { return "ScreenSpaceGI"; }
inline std::string_view GetShaderDefineName() override { return "SSGI"; }
inline bool HasShaderDefine(RE::BSShader::Type t) override
{
return t == RE::BSShader::Type::Lighting ||
t == RE::BSShader::Type::Grass ||
t == RE::BSShader::Type::DistantTree;
};

virtual void RestoreDefaultSettings() override;
virtual void DrawSettings() override;
Expand Down
Loading

0 comments on commit 4d820b9

Please sign in to comment.