From a5bc50deb031e9dbf3489b92679c0eff4f56d5d2 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Thu, 7 Dec 2017 16:21:40 +0100 Subject: [PATCH] update multi material --- src/components/D3Panel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/D3Panel.js b/src/components/D3Panel.js index e4067cc..422586e 100644 --- a/src/components/D3Panel.js +++ b/src/components/D3Panel.js @@ -96,10 +96,10 @@ class D3Panel extends React.Component { const geometryPlane = new THREE.PlaneGeometry(CANVAS_WIDTH, CANVAS_HEIGHT); geometryPlane.merge(new THREE.PlaneGeometry(CANVAS_WIDTH, CANVAS_HEIGHT), undefined, 1); - const materialPlane = new THREE.MultiMaterial([ + const materialPlane = [ new THREE.MeshBasicMaterial({ color: 0xcccccc, side: THREE.BackSide, transparent: true, opacity: 0.3 }), new THREE.MeshBasicMaterial({ color: 0xcccccc, side: THREE.FrontSide, transparent: true, opacity: 0.1 }) - ]); + ]; this.plane = new THREE.Mesh(geometryPlane, materialPlane); this.plane.rotation.x = Math.PI / 2; this.plane.position.y = -0.01;