mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 22:01:45 +00:00
Fixed: 3D floor with translucent texture but 255 alpha was rendered opaque.
This commit is contained in:
parent
6fc1dac37b
commit
480a11529c
3 changed files with 8 additions and 8 deletions
|
@ -191,8 +191,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
this.RenderPass = RenderPass.Mask;
|
||||
else if(extrafloor.RenderAdditive) //mxd
|
||||
this.RenderPass = RenderPass.Additive;
|
||||
else if(level.alpha < 255)
|
||||
this.RenderPass = RenderPass.Alpha;
|
||||
else if ((level.alpha < 255) || Texture.IsTranslucent)
|
||||
this.RenderPass = RenderPass.Alpha;
|
||||
else
|
||||
this.RenderPass = RenderPass.Mask;
|
||||
}
|
||||
|
|
|
@ -173,11 +173,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Determine render pass
|
||||
if(extrafloor != null)
|
||||
{
|
||||
if(extrafloor.Sloped3dFloor) //mxd
|
||||
if (extrafloor.Sloped3dFloor) //mxd
|
||||
this.RenderPass = RenderPass.Mask;
|
||||
else if(extrafloor.RenderAdditive) //mxd
|
||||
else if (extrafloor.RenderAdditive) //mxd
|
||||
this.RenderPass = RenderPass.Additive;
|
||||
else if(level.alpha < 255)
|
||||
else if ((level.alpha < 255) || Texture.IsTranslucent)
|
||||
this.RenderPass = RenderPass.Alpha;
|
||||
else
|
||||
this.RenderPass = RenderPass.Mask;
|
||||
|
|
|
@ -285,9 +285,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
List<WorldVertex> verts = CreatePolygonVertices(polygons, tp, sd, lightvalue, lightabsolute);
|
||||
if(verts.Count > 2)
|
||||
{
|
||||
if(extrafloor.Sloped3dFloor) this.RenderPass = RenderPass.Mask; //mxd
|
||||
else if(extrafloor.RenderAdditive) this.RenderPass = RenderPass.Additive; //mxd
|
||||
else if(extrafloor.Alpha < 255) this.RenderPass = RenderPass.Alpha;
|
||||
if (extrafloor.Sloped3dFloor) this.RenderPass = RenderPass.Mask; //mxd
|
||||
else if (extrafloor.RenderAdditive) this.RenderPass = RenderPass.Additive; //mxd
|
||||
else if ((extrafloor.Alpha < 255) || Texture.IsTranslucent) this.RenderPass = RenderPass.Alpha; // [ZZ] translucent texture should trigger Alpha pass
|
||||
else this.RenderPass = RenderPass.Mask;
|
||||
|
||||
if(extrafloor.Alpha < 255)
|
||||
|
|
Loading…
Reference in a new issue