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

@ -595,6 +595,8 @@ void VkLevelMeshUploader::UploadSurfaces()
{
info.TextureIndex = 0;
}
info.LightStart = surface->LightList.Pos;
info.LightEnd = surface->LightList.Pos + surface->LightList.Count;
*(surfaces++) = info;
}