mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-10 00:34:32 +00:00
Software: fix directional lighting on two-sided midtextures
blame c53ae816c1
This commit is contained in:
parent
2d169202f2
commit
4e984fbcff
1 changed files with 5 additions and 8 deletions
|
|
@ -238,18 +238,15 @@ static void R_RenderMaskedSegLoop(drawseg_t *ds, INT32 x1, INT32 x2, INT32 texnu
|
|||
{
|
||||
if ((R_CheckColumnFunc(COLDRAWFUNC_FUZZY) == false)
|
||||
|| (frontsector->extra_colormap && (frontsector->extra_colormap->flags & CMF_FOG)))
|
||||
{
|
||||
lightnum = (frontsector->lightlevel >> LIGHTSEGSHIFT);
|
||||
}
|
||||
else
|
||||
{
|
||||
lightnum = LIGHTLEVELS - 1;
|
||||
|
||||
if (P_ApplyLightOffset(lightnum))
|
||||
{
|
||||
lightnum += curline->lightOffset;
|
||||
}
|
||||
}
|
||||
if ((R_CheckColumnFunc(COLDRAWFUNC_FOG) == true)
|
||||
|| (frontsector->extra_colormap && (frontsector->extra_colormap->flags & CMF_FOG)))
|
||||
;
|
||||
else if (P_ApplyLightOffset(lightnum))
|
||||
lightnum += curline->lightOffset;
|
||||
|
||||
lightnum = R_AdjustLightLevel(lightnum);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue