Add SurfaceVertex to store texture UVs
This commit is contained in:
parent
c8146d33b5
commit
08b03f2d73
7 changed files with 146 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue