Skip to content

Commit

Permalink
XEOK-191 Fix math.transformPoint4 call
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalDybizbanskiCreoox committed Jan 10, 2025
1 parent bf5ac60 commit 9cde47e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/viewer/scene/model/dtx/triangles/DTXTrianglesLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1122,8 +1122,7 @@ export class DTXTrianglesLayer {
worldPos[2] = positions[i + 2];
worldPos[3] = 1.0;
math.decompressPosition(worldPos, positionsDecodeMatrix);
math.transformPoint4(this.model.worldMatrix, worldPos, worldPos);
math.transformPoint4(this.model.worldMatrix, worldPos, worldPos);
math.mulMat4v4(this.model.worldMatrix, worldPos, worldPos);
worldPos[0] += offsetX;
worldPos[1] += offsetY;
worldPos[2] += offsetZ;
Expand Down

0 comments on commit 9cde47e

Please sign in to comment.