1
0
mirror of https://github.com/Mauler125/r5sdk.git synced 2025-02-09 19:15:03 +01:00

Recast: fix indices for debug box (XZY -> XYZ)

the box's shape rendered correctly, but the faces were in the wrong order. The top face was on the side, so the voxel debug view didn't render correctly.
This commit is contained in:
Kawe Mazidjatari 2024-07-16 15:43:53 +02:00
parent f9a7b01f65
commit 1d2dd0a2d5

@ -316,12 +316,12 @@ void duAppendBox(struct duDebugDraw* dd, float minx, float miny, float minz,
};
static const unsigned char inds[6*4] =
{
2, 6, 7, 3,
0, 4, 5, 1,
7, 6, 5, 4,
0, 1, 2, 3,
1, 5, 6, 2,
3, 7, 4, 0,
2, 6, 7, 3,
0, 4, 5, 1,
};
const unsigned char* in = inds;