Grab the light list from the surfaces in the shader

This commit is contained in:
Magnus Norddahl 2024-02-26 16:15:14 +01:00
commit ccc5c259ad
6 changed files with 24 additions and 16 deletions

View file

@ -195,8 +195,6 @@ void VkLightmapper::Render()
{
LevelMeshSurface* surface = mesh->GetSurface(surfaceIndex);
pc.SurfaceIndex = surfaceIndex;
pc.LightStart = surface->LightList.Pos;
pc.LightEnd = surface->LightList.Pos + surface->LightList.Count;
VkDrawIndexedIndirectCommand cmd;
cmd.indexCount = surface->MeshLocation.NumElements;