- Transfer light support

This commit is contained in:
Magnus Norddahl 2017-08-27 17:27:49 +02:00
parent 45388d8a31
commit 8c146e4e71

View file

@ -308,7 +308,7 @@ void RenderPolyPlane::Render(const TriMatrix &worldToClip, const PolyClipPlane &
} }
} }
int lightlevel = frontsector->lightlevel; int lightlevel = ceiling ? frontsector->GetCeilingLight() : frontsector->GetFloorLight();
int actualextralight = foggy ? 0 : PolyRenderer::Instance()->Viewpoint.extralight << 4; int actualextralight = foggy ? 0 : PolyRenderer::Instance()->Viewpoint.extralight << 4;
lightlevel = clamp(lightlevel + actualextralight, 0, 255); lightlevel = clamp(lightlevel + actualextralight, 0, 255);