Skip to content

Commit e908d8c

Browse files
committed
changed THREE.BoxBufferGeometry to THREE.BoxGeometry.
Replaced THREE.BoxBufferGeometry with THREE.BoxGeometry. THREE.BoxBufferGeometry has been deprecated. https://github.com/mrdoob/three.js/wiki/Migration-Guide#144--145
1 parent e4def4c commit e908d8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ AFRAME.registerComponent("cubemap", {
3838

3939
// A Cubemap can be rendered as a mesh composed of a BoxBufferGeometry and
4040
// ShaderMaterial. EdgeLength will scale the mesh
41-
this.geometry = new THREE.BoxBufferGeometry(1, 1, 1);
41+
this.geometry = new THREE.BoxGeometry(1, 1, 1);
4242

4343
// Now for the ShaderMaterial.
4444
const shader = THREE.ShaderLib["cube"];

0 commit comments

Comments
 (0)