- Clean up PolyTriangleDrawer API so that it can better support both softpoly and the swrenderer
- Slightly improve how softpoly processes portals - Pass the vertex transform matrix via a command rather than being part of the drawer args - Improve zbuffer drawers in the software renderer - Misc model rendering fixes
This commit is contained in:
parent
cb3650ed9e
commit
2d51fa5b43
54 changed files with 1210 additions and 843 deletions
|
|
@ -34,12 +34,16 @@
|
|||
#include "scene/poly_light.h"
|
||||
#include "swrenderer/r_memory.h"
|
||||
#include "poly_renderthread.h"
|
||||
#include "stats.h"
|
||||
|
||||
class AActor;
|
||||
class DCanvas;
|
||||
class DrawerCommandQueue;
|
||||
typedef std::shared_ptr<DrawerCommandQueue> DrawerCommandQueuePtr;
|
||||
|
||||
extern cycle_t PolyCullCycles, PolyOpaqueCycles, PolyMaskedCycles, PolyDrawerWaitCycles;
|
||||
extern int PolyTotalBatches, PolyTotalTriangles, PolyTotalDrawCalls;
|
||||
|
||||
class PolyRenderer
|
||||
{
|
||||
public:
|
||||
|
|
@ -60,9 +64,10 @@ public:
|
|||
FViewWindow Viewwindow;
|
||||
FRenderViewpoint Viewpoint;
|
||||
PolyLightVisibility Light;
|
||||
RenderPolyScene Scene;
|
||||
|
||||
TriMatrix WorldToView;
|
||||
TriMatrix WorldToClip;
|
||||
Mat4f WorldToView;
|
||||
Mat4f WorldToClip;
|
||||
|
||||
private:
|
||||
void RenderActorView(AActor *actor, bool dontmaplines);
|
||||
|
|
@ -70,7 +75,6 @@ private:
|
|||
void SetSceneViewport();
|
||||
void SetupPerspectiveMatrix();
|
||||
|
||||
RenderPolyScene MainPortal;
|
||||
PolySkyDome Skydome;
|
||||
RenderPolyPlayerSprites PlayerSprites;
|
||||
uint32_t NextStencilValue = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue