Browse Source

Clean up.

Mr.doob 9 years ago
parent
commit
b6c710df84
2 changed files with 20 additions and 5 deletions
  1. 10 3
      examples/webvr_vive_paint.html
  2. 10 2
      examples/webvr_vive_sculpt.html

+ 10 - 3
examples/webvr_vive_paint.html

@@ -83,7 +83,11 @@
 				scene.add( camera );
 
 				var geometry = new THREE.BoxGeometry( 0.5, 0.8, 0.5 );
-				var material = new THREE.MeshStandardMaterial( { color: 0x444444, roughness: 1.0, metalness: 0.0 } );
+				var material = new THREE.MeshStandardMaterial( {
+					color: 0x444444,
+					roughness: 1.0,
+					metalness: 0.0
+				} );
 				var table = new THREE.Mesh( geometry, material );
 				table.position.y = 0.35;
 				table.position.z = 0.85;
@@ -101,7 +105,11 @@
 				*/
 
 				var geometry = new THREE.PlaneGeometry( 4, 4 );
-				var material = new THREE.MeshStandardMaterial( { color: 0x222222, roughness: 1.0, metalness: 0.0 } );
+				var material = new THREE.MeshStandardMaterial( {
+					color: 0x222222,
+					roughness: 1.0,
+					metalness: 0.0
+				} );
 				var floor = new THREE.Mesh( geometry, material );
 				floor.rotation.x = - Math.PI / 2;
 				floor.receiveShadow = true;
@@ -119,7 +127,6 @@
 				light.shadow.camera.right = 2;
 				light.shadow.camera.left = -2;
 				light.shadow.mapSize.set( 4096, 4096 );
-
 				scene.add( light );
 
 				// scene.add( new THREE.DirectionalLightHelper( light ) );

+ 10 - 2
examples/webvr_vive_sculpt.html

@@ -72,7 +72,11 @@
 				scene.add( camera );
 
 				var geometry = new THREE.BoxGeometry( 0.5, 0.8, 0.5 );
-				var material = new THREE.MeshStandardMaterial( { color: 0x444444, roughness: 1.0, metalness: 0.0 } );
+				var material = new THREE.MeshStandardMaterial( {
+					color: 0x444444,
+					roughness: 1.0,
+					metalness: 0.0
+				} );
 				var table = new THREE.Mesh( geometry, material );
 				table.position.y = 0.35;
 				table.position.z = 0.85;
@@ -81,7 +85,11 @@
 				scene.add( table );
 
 				var geometry = new THREE.PlaneGeometry( 4, 4 );
-				var material = new THREE.MeshStandardMaterial( { color: 0x222222, roughness: 1.0, metalness: 0.0 } );
+				var material = new THREE.MeshStandardMaterial( {
+					color: 0x222222,
+					roughness: 1.0,
+					metalness: 0.0
+				} );
 				var floor = new THREE.Mesh( geometry, material );
 				floor.rotation.x = - Math.PI / 2;
 				floor.receiveShadow = true;