mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-29 07:01:55 +00:00
Visual Mode: fixed a problem where sloped 3D floors with an alpha value of less than 128 were not shown at all instead of fully opaque. Fixes #954
This commit is contained in:
parent
59197fdfe0
commit
efcce48953
1 changed files with 10 additions and 6 deletions
|
@ -157,10 +157,6 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
if(sd.FloorGlow == null || !sd.FloorGlow.Fullbright) ceiling.color = 0;
|
||||
}
|
||||
|
||||
// Apply alpha
|
||||
floor.alpha = alpha;
|
||||
ceiling.alpha = alpha;
|
||||
|
||||
//mxd
|
||||
floor.extrafloor = true;
|
||||
ceiling.extrafloor = true;
|
||||
|
@ -172,6 +168,14 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
(Angle2D.RadToDeg(ceiling.plane.Normal.GetAngleZ()) != 270 ||
|
||||
Angle2D.RadToDeg(floor.plane.Normal.GetAngleZ()) != 90));
|
||||
|
||||
// As GZDoom doesn't support translucent 3D floors make is fully opaque
|
||||
if (sloped3dfloor)
|
||||
alpha = 255;
|
||||
|
||||
// Apply alpha
|
||||
floor.alpha = alpha;
|
||||
ceiling.alpha = alpha;
|
||||
|
||||
// Do not adjust light? (works only for non-vavoom types)
|
||||
if (!vavoomtype)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue