enable backface culling

This commit is contained in:
casperlamboo 2017-11-13 13:32:06 +01:00
parent 4e291b2370
commit 9e28b3b317

View File

@ -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);