Use the sector light probe for the sprites

This commit is contained in:
Magnus Norddahl 2025-07-10 01:25:12 +02:00
commit e29e1578bb

View file

@ -119,6 +119,8 @@ void HWSprite::DrawSprite(HWDrawInfo *di, FRenderState &state, bool translucent)
int rel = fullbright ? 0 : getExtraLight();
auto &vp = di->Viewpoint;
state.SetLightProbeIndex(actor->Sector ? actor->Sector->lightProbe.index : 0);
if (translucent)
{
// The translucent pass requires special setup for the various modes.