From b6c710df8429308789c0c9b8237e3145f509cc69 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Thu, 1 Sep 2016 18:26:14 -0700 Subject: [PATCH] Clean up. --- examples/webvr_vive_paint.html | 13 ++++++++++--- examples/webvr_vive_sculpt.html | 12 ++++++++++-- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/examples/webvr_vive_paint.html b/examples/webvr_vive_paint.html index 1d86017172..efd1239230 100644 --- a/examples/webvr_vive_paint.html +++ b/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 ) ); diff --git a/examples/webvr_vive_sculpt.html b/examples/webvr_vive_sculpt.html index 75f23c1cef..40866debb4 100644 --- a/examples/webvr_vive_sculpt.html +++ b/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; -- GitLab