From 9e28b3b31705a1f814894c086fa593192d53b7f2 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Mon, 13 Nov 2017 13:32:06 +0100 Subject: [PATCH] enable backface culling --- src/interface/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface/utils.js b/src/interface/utils.js index 5a8fca0..eb12020 100644 --- a/src/interface/utils.js +++ b/src/interface/utils.js @@ -43,7 +43,7 @@ export function createScene(canvas, props, state) { const light = new THREE.AmbientLight(0x808080); scene.add(light); - const mesh = new THREE.Mesh(geometry, new THREE.MeshStandardMaterial({ color: 0x2194ce })); + const mesh = new THREE.Mesh(geometry, new THREE.MeshStandardMaterial({ color: 0x2194ce, side: THREE.DoubleSide })); placeOnGround(mesh); scene.add(mesh);