mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-14 17:01:07 +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…
Reference in a new issue