Minor refactor and fix 3d floors not being detected for lightmap updates

This commit is contained in:
RaveYard 2023-09-09 15:22:40 +02:00 committed by Magnus Norddahl
commit 0f6ea51769
4 changed files with 32 additions and 9 deletions

View file

@ -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()