Skip to content

Commit

Permalink
Geometry -> BufferGeometry
Browse files Browse the repository at this point in the history
  • Loading branch information
WestLangley committed Oct 29, 2018
1 parent c0dbf05 commit 8c53695
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/webgl2_materials_texture3d_volume.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
} );

// Mesh
var geometry = new THREE.BoxGeometry( volume.xLength, volume.yLength, volume.zLength );
var geometry = new THREE.BoxBufferGeometry( volume.xLength, volume.yLength, volume.zLength );
geometry.translate( volume.xLength / 2 - 0.5, volume.yLength / 2 - 0.5, volume.zLength / 2 - 0.5 );

var mesh = new THREE.Mesh( geometry, material );
Expand Down
2 changes: 1 addition & 1 deletion examples/webgl_loader_obj2_meshspray.html
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@
var helper = new THREE.GridHelper( 1200, 60, 0xFF4444, 0x404040 );
this.scene.add( helper );

var geometry = new THREE.BoxGeometry( 10, 10, 10 );
var geometry = new THREE.BoxBufferGeometry( 10, 10, 10 );
var material = new THREE.MeshNormalMaterial();
this.cube = new THREE.Mesh( geometry, material );
this.cube.position.set( 0, 0, 0 );
Expand Down
2 changes: 1 addition & 1 deletion examples/webgl_loader_obj2_options.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
var helper = new THREE.GridHelper( 1200, 60, 0xFF4444, 0x404040 );
this.scene.add( helper );

var geometry = new THREE.BoxGeometry( 10, 10, 10 );
var geometry = new THREE.BoxBufferGeometry( 10, 10, 10 );
var material = new THREE.MeshNormalMaterial();
this.cube = new THREE.Mesh( geometry, material );
this.cube.position.set( 0, 0, 0 );
Expand Down
2 changes: 1 addition & 1 deletion examples/webvr_sculpt.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
pivot.rotation.x = Math.PI / 5.5;
controller.add( pivot );

var range = new THREE.Mesh( new THREE.IcosahedronGeometry( 0.03, 3 ), new THREE.MeshBasicMaterial( { opacity: 0.25, transparent: true } ) );
var range = new THREE.Mesh( new THREE.IcosahedronBufferGeometry( 0.03, 3 ), new THREE.MeshBasicMaterial( { opacity: 0.25, transparent: true } ) );
pivot.add( range );

controller1.add( controller.clone() );
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/PointLightHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function PointLightHelper( light, sphereSize, color ) {


/*
var distanceGeometry = new THREE.IcosahedronGeometry( 1, 2 );
var distanceGeometry = new THREE.IcosahedronBufferGeometry( 1, 2 );
var distanceMaterial = new THREE.MeshBasicMaterial( { color: hexColor, fog: false, wireframe: true, opacity: 0.1, transparent: true } );
this.lightSphere = new THREE.Mesh( bulbGeometry, bulbMaterial );
Expand Down

0 comments on commit 8c53695

Please sign in to comment.