Skip to content

Commit

Permalink
fix(VR): fix llf desync in eyes
Browse files Browse the repository at this point in the history
Updates commonlibng to latest with correct RE for VR in BSShadowLight.

closes doodlum#601
  • Loading branch information
alandtse committed Oct 9, 2024
1 parent 1d9dce8 commit 91894b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/Features/LightLimitFix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,8 @@ void LightLimitFix::BSLightingShader_SetupGeometry_GeometrySetupConstantPointLig

if (bsLight->IsShadowLight()) {
auto* shadowLight = static_cast<RE::BSShadowLight*>(bsLight);
light.shadowMaskIndex = shadowLight->shadowLightIndex;
GET_INSTANCE_MEMBER(shadowLightIndex, shadowLight);
light.shadowMaskIndex = shadowLightIndex;
light.lightFlags.set(LightFlags::Shadow);
}

Expand Down Expand Up @@ -720,7 +721,8 @@ void LightLimitFix::UpdateLights()

if (bsLight->IsShadowLight()) {
auto* shadowLight = static_cast<RE::BSShadowLight*>(bsLight);
light.shadowMaskIndex = shadowLight->shadowLightIndex;
GET_INSTANCE_MEMBER(shadowLightIndex, shadowLight);
light.shadowMaskIndex = shadowLightIndex;
light.lightFlags.set(LightFlags::Shadow);
}

Expand Down

0 comments on commit 91894b2

Please sign in to comment.