From 9cde47ec08a77d5bd185301caa25546b48534849 Mon Sep 17 00:00:00 2001 From: Michal Dybizbanski Date: Fri, 10 Jan 2025 17:36:41 +0100 Subject: [PATCH] XEOK-191 Fix math.transformPoint4 call --- src/viewer/scene/model/dtx/triangles/DTXTrianglesLayer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/viewer/scene/model/dtx/triangles/DTXTrianglesLayer.js b/src/viewer/scene/model/dtx/triangles/DTXTrianglesLayer.js index 87fe7ad056..292ff96fb8 100644 --- a/src/viewer/scene/model/dtx/triangles/DTXTrianglesLayer.js +++ b/src/viewer/scene/model/dtx/triangles/DTXTrianglesLayer.js @@ -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;