mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 12:50:52 +00:00
Fixed minor translucent rendering issue
This commit is contained in:
parent
a122dacf1d
commit
c0b3f983b9
1 changed files with 17 additions and 18 deletions
|
@ -495,7 +495,7 @@ namespace CodeImp.DoomBuilder.Rendering
|
|||
{
|
||||
graphics.Device.SetRenderState(RenderState.AlphaTestEnable, true);
|
||||
graphics.Shaders.World3D.IgnoreNormals = true;
|
||||
RenderModels(true, false);
|
||||
RenderModels(true, true);
|
||||
graphics.Shaders.World3D.IgnoreNormals = false;
|
||||
}
|
||||
|
||||
|
@ -1872,21 +1872,20 @@ namespace CodeImp.DoomBuilder.Rendering
|
|||
General.Settings.GZDrawModelsMode == ModelRenderMode.ACTIVE_THINGS_FILTER ||
|
||||
(General.Settings.GZDrawModelsMode == ModelRenderMode.SELECTION && t.Selected)))
|
||||
{
|
||||
switch(t.RenderPass)
|
||||
if (t.RenderPass == RenderPass.Mask ||
|
||||
t.RenderPass == RenderPass.Solid ||
|
||||
(t.RenderPass == RenderPass.Alpha && (t.VertexColor & 0xFF000000) == 0xFF000000))
|
||||
{
|
||||
case RenderPass.Mask:
|
||||
case RenderPass.Solid:
|
||||
ModelData mde = General.Map.Data.ModeldefEntries[t.Thing.Type];
|
||||
if (!maskedmodelthings.ContainsKey(mde)) maskedmodelthings.Add(mde, new List<VisualThing>());
|
||||
maskedmodelthings[mde].Add(t);
|
||||
break;
|
||||
|
||||
case RenderPass.Additive:
|
||||
case RenderPass.Alpha:
|
||||
}
|
||||
else if (t.RenderPass == RenderPass.Alpha || t.RenderPass == RenderPass.Additive)
|
||||
{
|
||||
translucentmodelthings.Add(t);
|
||||
break;
|
||||
|
||||
default:
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new NotImplementedException("Thing model rendering of " + t.RenderPass + " render pass is not implemented!");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue