Merge pull request #23 from luke3butler/master

Fix ".applyProjection() has been removed."
This commit is contained in:
Jess Telford 2022-06-10 10:00:29 +10:00 committed by GitHub
commit b463522e66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);