Skip to content

Commit

Permalink
fix: light limit fix lights missing
Browse files Browse the repository at this point in the history
  • Loading branch information
doodlum committed Sep 28, 2024
1 parent 1487f01 commit 90d1855
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Features/LightLimitFix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -638,9 +638,6 @@ void LightLimitFix::UpdateLights()
if (!(accumulator && accumulator->kCamera))
return;

lightsNear = std::max(0.0f, accumulator->kCamera->GetRuntimeData2().viewFrustum.fNear);
lightsFar = std::min(16384.0f, accumulator->kCamera->GetRuntimeData2().viewFrustum.fFar);

auto shadowSceneNode = RE::BSShaderManager::State::GetSingleton().shadowSceneNode[0];

// Cache data since cameraData can become invalid in first-person
Expand Down

0 comments on commit 90d1855

Please sign in to comment.