瀏覽代碼

Using GridHelper instead of PlaneGeometry in sound example.

Mr.doob 10 年之前
父節點
當前提交
ee901e156f
共有 1 個文件被更改,包括 5 次插入6 次删除
  1. 5 6
      examples/misc_sound.html

+ 5 - 6
examples/misc_sound.html

@@ -117,12 +117,11 @@
 
 
 				// ground
 				// ground
 
 
-				var material = new THREE.MeshLambertMaterial( { color: 0x7f7566, wireframe: true, wireframeLinewidth: 1 } );
-
-				mesh = new THREE.Mesh( new THREE.PlaneGeometry( 1000, 1000, 100, 100 ), material );
-				mesh.position.y = 0.1;
-				mesh.rotation.x = - Math.PI / 2;
-				scene.add( mesh );
+				var helper = new THREE.GridHelper( 500, 10 );
+				helper.color1.setHex( 0x444444 );
+				helper.color2.setHex( 0x444444 );
+				helper.position.y = 0.1
+				scene.add( helper );
 
 
 				//
 				//