Minor refactor and fix 3d floors not being detected for lightmap updates
This commit is contained in:
parent
19e9ac1db3
commit
0f6ea51769
4 changed files with 32 additions and 9 deletions
|
|
@ -98,6 +98,15 @@ DoomLevelMesh::DoomLevelMesh(FLevelLocals &doomMap)
|
|||
BindLightmapSurfacesToGeometry(doomMap);
|
||||
|
||||
Collision = std::make_unique<TriangleMeshShape>(MeshVertices.Data(), MeshVertices.Size(), MeshElements.Data(), MeshElements.Size());
|
||||
|
||||
// Runtime stuff
|
||||
for (auto& surface : Surfaces)
|
||||
{
|
||||
if ((surface.Type == ST_FLOOR || surface.Type == ST_CEILING) && surface.ControlSector)
|
||||
{
|
||||
XFloorToSurface[surface.ControlSector].Push(&surface);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void DoomLevelMesh::CreatePortals()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue