[Structs] Fix some vertex structs
This commit is contained in:
parent
4c9d394958
commit
25b610d3dd
@ -1554,14 +1554,31 @@ namespace Game
|
|||||||
XSurfaceCollisionTree *collisionTree;
|
XSurfaceCollisionTree *collisionTree;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
union PackedTexCoords
|
||||||
|
{
|
||||||
|
unsigned int packed;
|
||||||
|
};
|
||||||
|
|
||||||
|
union GfxColor
|
||||||
|
{
|
||||||
|
unsigned int packed;
|
||||||
|
char array[4];
|
||||||
|
unsigned char uArray[4];
|
||||||
|
};
|
||||||
|
|
||||||
|
union PackedUnitVec
|
||||||
|
{
|
||||||
|
unsigned int packed;
|
||||||
|
};
|
||||||
|
|
||||||
struct GfxPackedVertex
|
struct GfxPackedVertex
|
||||||
{
|
{
|
||||||
float x;
|
float xyz[3];
|
||||||
float y;
|
float binormalSign;
|
||||||
float z;
|
GfxColor color;
|
||||||
DWORD color;
|
PackedTexCoords texCoord;
|
||||||
WORD texCoords[2];
|
PackedUnitVec normal;
|
||||||
float normal[3];
|
PackedUnitVec tangent;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct XSurfaceVertexInfo
|
struct XSurfaceVertexInfo
|
||||||
@ -2830,18 +2847,6 @@ namespace Game
|
|||||||
int *leafRefs;
|
int *leafRefs;
|
||||||
};
|
};
|
||||||
|
|
||||||
union GfxColor
|
|
||||||
{
|
|
||||||
unsigned int packed;
|
|
||||||
char array[4];
|
|
||||||
unsigned char uArray[4];
|
|
||||||
};
|
|
||||||
|
|
||||||
union PackedUnitVec
|
|
||||||
{
|
|
||||||
unsigned int packed;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct GfxWorldVertex
|
struct GfxWorldVertex
|
||||||
{
|
{
|
||||||
float xyz[3];
|
float xyz[3];
|
||||||
|
Loading…
Reference in New Issue
Block a user