mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Opaque translucent midtextures
Fixed translucent midtextures being opaque when there were multiple lights in a sector.
This commit is contained in:
parent
dd16f58e38
commit
24681013d1
1 changed files with 6 additions and 1 deletions
|
|
@ -1639,7 +1639,12 @@ static void HWR_StoreWallRange(double startfrac, double endfrac)
|
||||||
blendmode = PF_Environment;
|
blendmode = PF_Environment;
|
||||||
|
|
||||||
if (gr_frontsector->numlights)
|
if (gr_frontsector->numlights)
|
||||||
HWR_SplitWall(gr_frontsector, wallVerts, gr_midtexture, &Surf, FF_CUTSOLIDS);
|
{
|
||||||
|
if (!(blendmode & PF_Masked))
|
||||||
|
HWR_SplitWall(gr_frontsector, wallVerts, gr_midtexture, &Surf, FF_CUTSOLIDS|FF_TRANSLUCENT);
|
||||||
|
else
|
||||||
|
HWR_SplitWall(gr_frontsector, wallVerts, gr_midtexture, &Surf, FF_CUTSOLIDS);
|
||||||
|
}
|
||||||
else if (!(blendmode & PF_Masked))
|
else if (!(blendmode & PF_Masked))
|
||||||
HWR_AddTransparentWall(wallVerts, &Surf, gr_midtexture, blendmode, false, lightnum, colormap);
|
HWR_AddTransparentWall(wallVerts, &Surf, gr_midtexture, blendmode, false, lightnum, colormap);
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue