From ecee3be65042c3684be0add9c24bfb9c6e2282a2 Mon Sep 17 00:00:00 2001 From: Luke Date: Wed, 7 Mar 2018 12:34:49 -0500 Subject: [PATCH] Fix ".applyProjection() has been removed." --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 88baac0..729139f 100644 --- a/src/index.js +++ b/src/index.js @@ -81,7 +81,7 @@ const {unproject} = (function unprojectFunction() { initialized = initialized || initialize(THREE); - vector.applyProjection(matrix.getInverse(threeCamera.projectionMatrix)); + vector.applyMatrix4(matrix.getInverse(threeCamera.projectionMatrix)); return localToWorld(THREE, threeCamera, vector);