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

@ -47,7 +47,6 @@
#include "hwrenderer/scene/hw_fakeflat.h"
#include "hwrenderer/scene/hw_clipper.h"
#include "hwrenderer/scene/hw_portal.h"
#include "hwrenderer/scene/hw_meshcache.h"
#include "hwrenderer/scene/hw_drawcontext.h"
#include "hw_vrmodes.h"
@ -134,8 +133,6 @@ sector_t* RenderViewpoint(FRenderViewpoint& mainvp, AActor* camera, IntRect* bou
hw_ClearFakeFlat(&mainthread_drawctx);
meshcache.Update(&mainthread_drawctx, mainvp);
// Render (potentially) multiple views for stereo 3d
// Fixme. The view offsetting should be done with a static table and not require setup of the entire render state for the mode.
auto vrmode = VRMode::GetVRMode(mainview && toscreen);