Skip to content

Commit

Permalink
Snow volumetric lights fix for preCE (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
sTc2201 authored Jan 2, 2025
1 parent 5458979 commit 595d41d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/snow/snow.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ public:
if (bEnableSnow)
{
auto light = (rage::CLightSource*)(regs.esi + regs.eax * 1);
*(float*)(regs.esp + 0xEC) = LightVolumeIntensity[std::make_tuple(static_cast<int>(light->mPosition.x), static_cast<int>(light->mPosition.y), static_cast<int>(light->mPosition.z))];
*(float*)(regs.esp + 0x68) = LightVolumeIntensity[std::make_tuple(static_cast<int>(light->mPosition.x), static_cast<int>(light->mPosition.y), static_cast<int>(light->mPosition.z))];
}
else
*(float*)(regs.esp + 0x68) = 1.0f;
Expand Down

0 comments on commit 595d41d

Please sign in to comment.