- Convert PolyTranslucentObject to be a base class for all the different forms of translucent objects to be drawn
This commit is contained in:
parent
23aebaecc6
commit
dd0bc02eec
9 changed files with 92 additions and 61 deletions
|
|
@ -430,7 +430,7 @@ void Render3DFloorPlane::RenderPlanes(const TriMatrix &worldToClip, const PolyCl
|
|||
if (!plane.Masked)
|
||||
plane.Render(worldToClip, clipPlane);
|
||||
else
|
||||
translucentObjects.push_back(PolyRenderer::Instance()->FrameMemory.NewObject<PolyTranslucentObject>(plane, subsectorDepth));
|
||||
translucentObjects.push_back(PolyRenderer::Instance()->FrameMemory.NewObject<PolyTranslucent3DFloorPlane>(plane, subsectorDepth));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -470,7 +470,7 @@ void Render3DFloorPlane::RenderPlanes(const TriMatrix &worldToClip, const PolyCl
|
|||
if (!plane.Masked)
|
||||
plane.Render(worldToClip, clipPlane);
|
||||
else
|
||||
translucentObjects.push_back(PolyRenderer::Instance()->FrameMemory.NewObject<PolyTranslucentObject>(plane, subsectorDepth));
|
||||
translucentObjects.push_back(PolyRenderer::Instance()->FrameMemory.NewObject<PolyTranslucent3DFloorPlane>(plane, subsectorDepth));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue