Skip to content

Commit

Permalink
fix: deprecated geometry from examples (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
seantai authored Aug 30, 2023
1 parent 2104385 commit a1bb369
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/await-transitions.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
cameraControls = new CameraControls( camera, renderer.domElement );

mesh = new THREE.Mesh(
new THREE.BoxBufferGeometry( 1, 1, 1 ),
new THREE.BoxGeometry( 1, 1, 1 ),
new THREE.MeshBasicMaterial( { color: 0xff0000, wireframe: true } )
);
scene.add( mesh );
Expand Down
2 changes: 1 addition & 1 deletion examples/fit-to-bounding-sphere.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

const boundingSphere = CameraControls.createBoundingSphere( gltf.scene );
const sphereHelper = new THREE.Mesh(
new THREE.SphereBufferGeometry( boundingSphere.radius, 16, 16 ),
new THREE.SphereGeometry( boundingSphere.radius, 16, 16 ),
new THREE.MeshBasicMaterial( { color: 0xff0000, wireframe: true } )
);
sphereHelper.position.copy( boundingSphere.center );
Expand Down
2 changes: 1 addition & 1 deletion examples/rest-and-sleep.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
const cameraControls = new CameraControls( camera, renderer.domElement );

const mesh = new THREE.Mesh(
new THREE.BoxBufferGeometry( 1, 1, 1 ),
new THREE.BoxGeometry( 1, 1, 1 ),
new THREE.MeshBasicMaterial( { color: 0xff0000, wireframe: true } )
);
scene.add( mesh );
Expand Down

0 comments on commit a1bb369

Please sign in to comment.