mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-14 00:20:38 +00:00
- Fixed: Masked mid textures should get their light level from the frontsector they reference,
not from the sector they appear in. SVN r3935 (trunk)
This commit is contained in:
parent
ecf700b47b
commit
f8c1d5d520
1 changed files with 14 additions and 1 deletions
|
@ -2427,7 +2427,20 @@ void R_StoreWallRange (int start, int stop)
|
||||||
}
|
}
|
||||||
ds_p->light = rw_light;
|
ds_p->light = rw_light;
|
||||||
ds_p->lightstep = rw_lightstep;
|
ds_p->lightstep = rw_lightstep;
|
||||||
|
|
||||||
|
// Masked midtextures should get the light level from the sector they reference,
|
||||||
|
// not from the current subsector, which is what the current wallshade value
|
||||||
|
// comes from. We make an exeption for polyobjects, however, since their "home"
|
||||||
|
// sector should be whichever one they move into.
|
||||||
|
if (curline->sidedef->Flags & WALLF_POLYOBJ)
|
||||||
|
{
|
||||||
ds_p->shade = wallshade;
|
ds_p->shade = wallshade;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ds_p->shade = LIGHT2SHADE(curline->sidedef->GetLightLevel(foggy, curline->frontsector->lightlevel)
|
||||||
|
+ r_actualextralight);
|
||||||
|
}
|
||||||
|
|
||||||
if (ds_p->bFogBoundary || ds_p->maskedtexturecol != -1)
|
if (ds_p->bFogBoundary || ds_p->maskedtexturecol != -1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue