Use HWFlat for ceilings and floors

This commit is contained in:
Magnus Norddahl 2023-12-05 10:01:03 +01:00
commit ac212e0147
18 changed files with 266 additions and 626 deletions

View file

@ -83,7 +83,6 @@
#include "vm.h"
#include "texturemanager.h"
#include "hw_vertexbuilder.h"
#include "scene/hw_meshcache.h"
#include "version.h"
#include "vulkan/accelstructs/halffloat.h"
@ -3713,7 +3712,6 @@ void MapLoader::LoadLevel(MapData *map, const char *lumpname, int position)
InitRenderInfo(); // create hardware independent renderer resources for the level. This must be done BEFORE the PolyObj Spawn!!!
Level->ClearDynamic3DFloorData(); // CreateVBO must be run on the plain 3D floor data.
CreateVBO(*screen->RenderState(), Level->sectors);
meshcache.Clear();
for (auto &sec : Level->sectors)
{