mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +00:00
- Transfer light support
This commit is contained in:
parent
45388d8a31
commit
8c146e4e71
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
lightlevel = clamp(lightlevel + actualextralight, 0, 255);
|
||||
|
||||
|
|
Loading…
Reference in a new issue