Skip to content

Commit 10a7b39

Browse files
committed
Made misc_controls_map example more city like.
1 parent bea8582 commit 10a7b39

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/misc_controls_map.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@
8484

8585
// world
8686

87-
var geometry = new THREE.CylinderBufferGeometry( 0, 10, 30, 4, 1 );
87+
var geometry = new THREE.BoxBufferGeometry( 1, 1, 1 );
88+
geometry.translate( 0, 0.5, 0 );
8889
var material = new THREE.MeshPhongMaterial( { color: 0xffffff, flatShading: true } );
8990

9091
for ( var i = 0; i < 500; i ++ ) {
@@ -93,6 +94,9 @@
9394
mesh.position.x = Math.random() * 1600 - 800;
9495
mesh.position.y = 0;
9596
mesh.position.z = Math.random() * 1600 - 800;
97+
mesh.scale.x = 20;
98+
mesh.scale.y = Math.random() * 80 + 10;
99+
mesh.scale.z = 20;
96100
mesh.updateMatrix();
97101
mesh.matrixAutoUpdate = false;
98102
scene.add( mesh );

0 commit comments

Comments
 (0)