2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-06-06 08:42:35 +00:00

all known bugs fixed and loaded maps work correctly now.

This commit is contained in:
LJW-Dev
2025-08-28 23:34:06 +08:00
committed by Jan Laupetin
parent b0756ef8e1
commit 10da8b27b7
18 changed files with 40278 additions and 350 deletions
+55 -4
View File
@@ -251,13 +251,27 @@ namespace T6
unsigned int packedLmapCoord;
};
enum CM_MATERIAL_TYPE
{
NO_COLOUR_OR_TEXTURE,
CM_MATERIAL_COLOUR,
CM_MATERIAL_TEXTURE
};
struct customMapMaterial
{
CM_MATERIAL_TYPE materialType;
const char* materialName;
};
struct worldSurface
{
char flags;
char lightmapIndex;
std::string materialName;
char primaryLightIndex;
char reflectionProbeIndex;
customMapMaterial material;
// char lightmapIndex;
// char primaryLightIndex;
// char reflectionProbeIndex;
int triCount;
int firstVertexIndex;
@@ -276,12 +290,49 @@ namespace T6
worldSurface* surfaces;
};
struct customMapColVertex
{
vec3_t pos;
};
struct collisionSurface
{
int triCount;
int firstVertexIndex;
int firstIndex_Index;
};
struct customMapCol
{
int vertexCount;
customMapColVertex* vertices;
int indexCount;
uint16_t* indices;
int surfaceCount;
collisionSurface* surfaces;
};
struct customMapModel
{
std::string name;
vec3_t origin;
vec3_t rotation; // euler rotation in degrees
float scale;
};
struct customMapInfo
{
std::string name;
std::string bspName;
customMapGfx gfxInfo;
customMapGfx colInfo;
size_t modelCount;
customMapModel* models;
};
using AssetPhysPreset = Asset<ASSET_TYPE_PHYSPRESET, PhysPreset>;