Fix surface index passed to glsl
This commit is contained in:
parent
3386b6ad1a
commit
6ccb92ef60
8 changed files with 67 additions and 30 deletions
|
|
@ -557,15 +557,15 @@ void VulkanRenderDevice::SetLevelMesh(LevelMesh* mesh)
|
|||
}
|
||||
}
|
||||
|
||||
void VulkanRenderDevice::UpdateLightmaps(const TArray<LevelMeshSurface*>& surfaces)
|
||||
void VulkanRenderDevice::UpdateLightmaps(const TArray<int>& surfaceIndices)
|
||||
{
|
||||
if (surfaces.Size() > 0)
|
||||
if (surfaceIndices.Size() > 0)
|
||||
{
|
||||
auto levelMesh = lastMesh; // There's nothing more permanent than a temporary solution
|
||||
|
||||
if (levelMesh)
|
||||
{
|
||||
GetLightmap()->Raytrace(levelMesh, surfaces);
|
||||
GetLightmap()->Raytrace(levelMesh, surfaceIndices);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue