Skip to content

Commit

Permalink
fix: THREE.Math does not exist
Browse files Browse the repository at this point in the history
THREE.Math was renamed to THREE.MathUtils in r113.
THREE.PlaneBufferGeometry is deprecated.

Fixes AR-js-org#515

Signed-off-by: Gordon Smith <[email protected]>
  • Loading branch information
GordonSmith committed Feb 18, 2023
1 parent 8662537 commit 28b4774
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
// Modified version of THREE.DeviceOrientationControls from three.js
// will use the deviceorientationabsolute event if available

import {
Euler,
EventDispatcher,
Math as MathUtils,
Quaternion,
Vector3,
} from "three";
import { Euler, EventDispatcher, MathUtils, Quaternion, Vector3 } from "three";

const _zee = new Vector3(0, 0, 1);
const _euler = new Euler();
Expand Down
2 changes: 1 addition & 1 deletion three.js/src/location-based/js/webcam-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class WebcamRenderer {
} else {
video = document.querySelector(videoElement);
}
this.geom = new THREE.PlaneBufferGeometry();
this.geom = new THREE.PlaneGeometry();
this.texture = new THREE.VideoTexture(video);
this.material = new THREE.MeshBasicMaterial({ map: this.texture });
const mesh = new THREE.Mesh(this.geom, this.material);
Expand Down

0 comments on commit 28b4774

Please sign in to comment.