Add SurfaceVertex to store texture UVs

This commit is contained in:
RaveYard 2023-09-20 12:51:11 +02:00 committed by Magnus Norddahl
commit 08b03f2d73
7 changed files with 146 additions and 15 deletions

View file

@ -8,9 +8,11 @@
#include "common/utility/matrix.h"
#include <memory>
#include <cstring>
#include "textureid.h"
#include <dp_rect_pack.h>
typedef dp::rect_pack::RectPacker<int> RectPacker;
class LevelMeshLight
@ -62,6 +64,8 @@ struct LevelMeshSurface
//
// Required for internal lightmapper:
//
FTextureID texture = FNullTextureID();
int portalIndex = 0;
int sectorGroup = 0;
@ -193,6 +197,7 @@ public:
virtual ~LevelMesh() = default;
TArray<FVector3> MeshVertices;
TArray<FVector2> MeshVertexUVs;
TArray<int> MeshUVIndex;
TArray<uint32_t> MeshElements;
TArray<int> MeshSurfaceIndexes;