Change lightmapper to only use one image
This commit is contained in:
parent
d609396e3b
commit
651b2ef9e3
6 changed files with 201 additions and 275 deletions
|
|
@ -475,17 +475,6 @@ void VulkanRenderDevice::BeginFrame()
|
|||
levelMesh->UpdateLightLists();
|
||||
GetTextureManager()->CreateLightmap(levelMesh->LMTextureSize, levelMesh->LMTextureCount, std::move(levelMesh->LMTextureData));
|
||||
GetLightmap()->SetLevelMesh(levelMesh);
|
||||
|
||||
#if 0 // full lightmap generation
|
||||
TArray<LevelMeshSurface*> surfaces;
|
||||
surfaces.Reserve(mesh->GetSurfaceCount());
|
||||
for (unsigned i = 0, count = mesh->GetSurfaceCount(); i < count; ++i)
|
||||
{
|
||||
surfaces[i] = mesh->GetSurface(i);
|
||||
}
|
||||
|
||||
GetLightmap()->Raytrace(surfaces);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue