Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions examples/webgl_octree.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
scene,
renderer,
octree,
geometry,
geometry = new THREE.BoxBufferGeometry( 50, 50, 50 ),
material,
mesh,
meshes = [],
Expand Down Expand Up @@ -122,8 +122,6 @@

}

var geometry = new THREE.BoxBufferGeometry( 50, 50, 50 );

function modifyOctree() {

// if is adding objects to octree
Expand All @@ -132,7 +130,7 @@

// create new object

mesh = new THREE.Line( geometry, new THREE.MeshBasicMaterial( { color: new THREE.Color( base ) } ) );
mesh = new THREE.Mesh( geometry, new THREE.MeshBasicMaterial( { color: new THREE.Color( base ) } ) );

// give new object a random position in radius

Expand Down