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

Moved coordinate conversion to BSP creator instead of the BSP linker, and added a console print of the maximum number of objects in a collision leaf.

This commit is contained in:
LJW-Dev
2025-11-04 15:09:00 +08:00
committed by Jan Laupetin
parent b8b67dc793
commit 23fc37b1c6
4 changed files with 13 additions and 5 deletions
@@ -23,7 +23,7 @@ namespace BSP
BSPVertex& bspVertex = bsp->gfxWorld.vertices.at(vertIdx);
GfxPackedWorldVertex* gfxVertex = &vertexBuffer[vertIdx];
gfxVertex->xyz = BSPUtil::convertToBO2Coords(bspVertex.pos);
gfxVertex->xyz = bspVertex.pos;
gfxVertex->color.packed = pack32::Vec4PackGfxColor(bspVertex.color.v);
gfxVertex->texCoord.packed = pack32::Vec2PackTexCoordsUV(bspVertex.texCoord.v);
gfxVertex->normal.packed = pack32::Vec3PackUnitVecThirdBased(bspVertex.normal.v);