Change surfaceIndices to surfaces

This commit is contained in:
RaveYard 2023-09-10 20:16:35 +02:00 committed by Magnus Norddahl
commit 6f44e2b5d4
7 changed files with 25 additions and 32 deletions

View file

@ -557,15 +557,15 @@ void VulkanRenderDevice::SetLevelMesh(LevelMesh* mesh)
}
}
void VulkanRenderDevice::UpdateLightmaps(const TArray<int>& surfaceIndices)
void VulkanRenderDevice::UpdateLightmaps(const TArray<LevelMeshSurface*>& surfaces)
{
if (surfaceIndices.Size() > 0)
if (surfaces.Size() > 0)
{
auto levelMesh = lastMesh; // There's nothing more permanent than a temporary solution
if (levelMesh)
{
GetLightmap()->Raytrace(levelMesh, surfaceIndices);
GetLightmap()->Raytrace(levelMesh, surfaces);
}
}
}