Change lightmapper to only use one image

This commit is contained in:
Magnus Norddahl 2023-09-15 18:07:37 +02:00
commit 651b2ef9e3
6 changed files with 201 additions and 275 deletions

View file

@ -1079,15 +1079,6 @@ void DoomLevelMesh::SetupLightmapUvs()
sortedSurfaces.push_back(&surface);
}
// VkLightmapper old ZDRay properties
for (auto& surface : Surfaces)
{
for (int i = 0; i < surface.numVerts; ++i)
{
surface.verts.Push(MeshVertices[surface.startVertIndex + i]);
}
}
BuildSmoothingGroups();
std::sort(sortedSurfaces.begin(), sortedSurfaces.end(), [](LevelMeshSurface* a, LevelMeshSurface* b) { return a->texHeight != b->texHeight ? a->texHeight > b->texHeight : a->texWidth > b->texWidth; });