WIP surface list for raytracing
This commit is contained in:
parent
6078e339fc
commit
f95ffbe299
3 changed files with 15 additions and 8 deletions
|
|
@ -540,8 +540,15 @@ void VulkanRenderDevice::SetLevelMesh(LevelMesh* mesh)
|
|||
|
||||
mesh->UpdateLightLists();
|
||||
|
||||
TArray<LevelMeshSurface*> surfaces;
|
||||
surfaces.Reserve(mesh->GetSurfaceCount());
|
||||
for (unsigned i = 0, count = mesh->GetSurfaceCount(); i < count; ++i)
|
||||
{
|
||||
surfaces[i] = mesh->GetSurface(i);
|
||||
}
|
||||
|
||||
GetTextureManager()->CreateLightmap(mesh->LMTextureSize, mesh->LMTextureCount);
|
||||
GetLightmap()->Raytrace(mesh);
|
||||
GetLightmap()->Raytrace(mesh, surfaces);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue