Initial implementation for lightmap lump loading

This commit is contained in:
RaveYard 2023-09-13 18:08:54 +02:00 committed by Magnus Norddahl
commit c6b92e1c1b
10 changed files with 354 additions and 35 deletions

View file

@ -473,7 +473,7 @@ void VulkanRenderDevice::BeginFrame()
if (levelMesh && levelMesh->GetSurfaceCount() > 0)
{
levelMesh->UpdateLightLists();
GetTextureManager()->CreateLightmap(levelMesh->LMTextureSize, levelMesh->LMTextureCount);
GetTextureManager()->CreateLightmap(levelMesh->LMTextureSize, levelMesh->LMTextureCount, std::move(levelMesh->LMTextureData));
GetLightmap()->SetLevelMesh(levelMesh);
#if 0 // full lightmap generation