Fix the shadow data VBO not updating its lightmap UVs
This commit is contained in:
parent
737b7ece96
commit
6e5df8ef4c
3 changed files with 88 additions and 1 deletions
|
|
@ -331,9 +331,15 @@ void DoomLevelMesh::BeginFrame(FLevelLocals& doomMap)
|
|||
}
|
||||
Flats[flatIndex].UpdateType = SurfaceUpdateType::None;
|
||||
}
|
||||
FlatUpdateList.Clear();
|
||||
|
||||
PackLightmapAtlas();
|
||||
|
||||
for (int flatIndex : FlatUpdateList)
|
||||
{
|
||||
UpdateVBOLightmap(*screen->RenderState(), &doomMap.sectors[flatIndex]);
|
||||
}
|
||||
FlatUpdateList.Clear();
|
||||
|
||||
UpdateWallPortals();
|
||||
UploadDynLights(doomMap);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue