mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +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)
|
if ((R_CheckColumnFunc(COLDRAWFUNC_FUZZY) == false)
|
||||||
|| (frontsector->extra_colormap && (frontsector->extra_colormap->flags & CMF_FOG)))
|
|| (frontsector->extra_colormap && (frontsector->extra_colormap->flags & CMF_FOG)))
|
||||||
{
|
|
||||||
lightnum = (frontsector->lightlevel >> LIGHTSEGSHIFT);
|
lightnum = (frontsector->lightlevel >> LIGHTSEGSHIFT);
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
lightnum = LIGHTLEVELS - 1;
|
lightnum = LIGHTLEVELS - 1;
|
||||||
|
|
||||||
if (P_ApplyLightOffset(lightnum))
|
if ((R_CheckColumnFunc(COLDRAWFUNC_FOG) == true)
|
||||||
{
|
|| (frontsector->extra_colormap && (frontsector->extra_colormap->flags & CMF_FOG)))
|
||||||
lightnum += curline->lightOffset;
|
;
|
||||||
}
|
else if (P_ApplyLightOffset(lightnum))
|
||||||
}
|
lightnum += curline->lightOffset;
|
||||||
|
|
||||||
lightnum = R_AdjustLightLevel(lightnum);
|
lightnum = R_AdjustLightLevel(lightnum);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue