Delay finding the light lists until after map has loaded
This commit is contained in:
parent
cdb9f3798c
commit
ea02067b0a
4 changed files with 25 additions and 6 deletions
|
|
@ -169,6 +169,8 @@ public:
|
|||
virtual LevelMeshSurface* GetSurface(int index) { return nullptr; }
|
||||
virtual int GetSurfaceCount() { return 0; }
|
||||
|
||||
virtual void UpdateLightLists() { }
|
||||
|
||||
TArray<LevelMeshSmoothingGroup> SmoothingGroups; // TODO fill
|
||||
TArray<LevelMeshPortal> Portals; // TODO fill
|
||||
|
||||
|
|
|
|||
|
|
@ -538,6 +538,8 @@ void VulkanRenderDevice::SetLevelMesh(LevelMesh* mesh)
|
|||
{
|
||||
lastMesh = mesh;
|
||||
|
||||
mesh->UpdateLightLists();
|
||||
|
||||
GetTextureManager()->CreateLightmap(mesh->LMTextureSize, mesh->LMTextureCount);
|
||||
GetLightmap()->Raytrace(mesh);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue