Grab the light list from the surfaces in the shader
This commit is contained in:
parent
68f9fee55b
commit
ccc5c259ad
6 changed files with 24 additions and 16 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue