Skip to content

Commit

Permalink
fix(vtkFollower): fix vtkFollower set vpn param bug when camera.getPa…
Browse files Browse the repository at this point in the history
…rallelProjection() is true
  • Loading branch information
xyxie authored and jourdain committed Jan 3, 2024
1 parent 95e0708 commit f2588ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Rendering/Core/Follower/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f2588ce

Please sign in to comment.