mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-06 21:26:56 +02:00
fix vertex weld for TR4
This commit is contained in:
@@ -731,9 +731,10 @@ struct MeshBuilder {
|
|||||||
short4 *VAR = new short4[RANGE.vCount];\
|
short4 *VAR = new short4[RANGE.vCount];\
|
||||||
for (int i = 0; i < RANGE.vCount; i++) {\
|
for (int i = 0; i < RANGE.vCount; i++) {\
|
||||||
VAR[i] = vertices[RANGE.vStart + i].coord;\
|
VAR[i] = vertices[RANGE.vStart + i].coord;\
|
||||||
VAR[i].x += jointsPos[VAR[i].w].x;\
|
int index = VAR[i].w / 2;\
|
||||||
VAR[i].y += jointsPos[VAR[i].w].y;\
|
VAR[i].x += jointsPos[index].x;\
|
||||||
VAR[i].z += jointsPos[VAR[i].w].z;\
|
VAR[i].y += jointsPos[index].y;\
|
||||||
|
VAR[i].z += jointsPos[index].z;\
|
||||||
}
|
}
|
||||||
|
|
||||||
COORD_FILL(vSkin, rangeSkin);
|
COORD_FILL(vSkin, rangeSkin);
|
||||||
|
Reference in New Issue
Block a user