From f2588ce1bf63078cea28e2f52dfdab80f180afe2 Mon Sep 17 00:00:00 2001 From: xyxie Date: Wed, 3 Jan 2024 20:13:04 +0800 Subject: [PATCH] fix(vtkFollower): fix vtkFollower set vpn param bug when camera.getParallelProjection() is true --- Sources/Rendering/Core/Follower/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Rendering/Core/Follower/index.js b/Sources/Rendering/Core/Follower/index.js index dcc8b900267..12fa584edad 100644 --- a/Sources/Rendering/Core/Follower/index.js +++ b/Sources/Rendering/Core/Follower/index.js @@ -45,7 +45,7 @@ function vtkFollower(publicAPI, model) { // compute a vpn const vpn = new Float64Array(3); if (model.camera.getParallelProjection()) { - vec3.set(vpn, model.camera.getViewPlaneNormal()); + vec3.set(vpn, ...model.camera.getViewPlaneNormal()); } else { vec3.set(vpn, ...model.position); vec3.subtract(vpn, model.camera.getPosition(), vpn);