diff --git a/src/Game/Structs.hpp b/src/Game/Structs.hpp index 6bfdfb79..f67adeae 100644 --- a/src/Game/Structs.hpp +++ b/src/Game/Structs.hpp @@ -1554,14 +1554,31 @@ namespace Game 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 { - float x; - float y; - float z; - DWORD color; - WORD texCoords[2]; - float normal[3]; + float xyz[3]; + float binormalSign; + GfxColor color; + PackedTexCoords texCoord; + PackedUnitVec normal; + PackedUnitVec tangent; }; struct XSurfaceVertexInfo @@ -2830,18 +2847,6 @@ namespace Game int *leafRefs; }; - union GfxColor - { - unsigned int packed; - char array[4]; - unsigned char uArray[4]; - }; - - union PackedUnitVec - { - unsigned int packed; - }; - struct GfxWorldVertex { float xyz[3];