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

@ -475,17 +475,6 @@ void VulkanRenderDevice::BeginFrame()
levelMesh->UpdateLightLists();
GetTextureManager()->CreateLightmap(levelMesh->LMTextureSize, levelMesh->LMTextureCount, std::move(levelMesh->LMTextureData));
GetLightmap()->SetLevelMesh(levelMesh);
#if 0 // full lightmap generation
TArray<LevelMeshSurface*> surfaces;
surfaces.Reserve(mesh->GetSurfaceCount());
for (unsigned i = 0, count = mesh->GetSurfaceCount(); i < count; ++i)
{
surfaces[i] = mesh->GetSurface(i);
}
GetLightmap()->Raytrace(surfaces);
#endif
}
}