Skip to content

Commit

Permalink
feat: po3 light placer support (doodlum#747)
Browse files Browse the repository at this point in the history
  • Loading branch information
doodlum authored Nov 15, 2024
1 parent 0269ac0 commit 09b6477
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Features/LightLimitFix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ void LightLimitFix::BSLightingShader_SetupGeometry_GeometrySetupConstantPointLig

SetLightPosition(light, niLight->world.translate, inWorld);

light.lightFlags = static_cast<LightFlags>(runtimeData.ambient.red);

if (bsLight->IsShadowLight()) {
auto* shadowLight = static_cast<RE::BSShadowLight*>(bsLight);
GET_INSTANCE_MEMBER(shadowLightIndex, shadowLight);
Expand Down Expand Up @@ -791,6 +793,8 @@ void LightLimitFix::UpdateLights()

light.radius = runtimeData.radius.x;

light.lightFlags = static_cast<LightFlags>(runtimeData.ambient.red);

if (!IsGlobalLight(bsLight)) {
// List of BSMultiBoundRooms affected by a light
for (const auto& roomPtr : bsLight->rooms) {
Expand Down

0 comments on commit 09b6477

Please sign in to comment.