1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-06 05:07:48 +02:00

fix vertex weld for TR4

This commit is contained in:
XProger
2020-03-01 05:28:16 +03:00
parent 2a6d533b03
commit 8d45f27965

View File

@@ -731,9 +731,10 @@ struct MeshBuilder {
short4 *VAR = new short4[RANGE.vCount];\
for (int i = 0; i < RANGE.vCount; i++) {\
VAR[i] = vertices[RANGE.vStart + i].coord;\
VAR[i].x += jointsPos[VAR[i].w].x;\
VAR[i].y += jointsPos[VAR[i].w].y;\
VAR[i].z += jointsPos[VAR[i].w].z;\
int index = VAR[i].w / 2;\
VAR[i].x += jointsPos[index].x;\
VAR[i].y += jointsPos[index].y;\
VAR[i].z += jointsPos[index].z;\
}
COORD_FILL(vSkin, rangeSkin);