From c4d8d1136af9494256fe4b5a871fb0bb5b89fcc1 Mon Sep 17 00:00:00 2001 From: Casper Lamboo Date: Tue, 6 Mar 2018 12:25:49 +0100 Subject: [PATCH] use flat shading --- 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 51a99b1..7064a6c 100644 --- a/src/interface/utils.js +++ b/src/interface/utils.js @@ -42,7 +42,7 @@ export function createScene({ pixelRatio, muiTheme }) { const light = new THREE.AmbientLight(0x656565); scene.add(light); - const material = new THREE.MeshPhongMaterial({ color: muiTheme.palette.primary2Color, side: THREE.DoubleSide, specular: 0xc5c5c5, shininess: 5 }); + const material = new THREE.MeshPhongMaterial({ color: muiTheme.palette.primary2Color, side: THREE.DoubleSide, specular: 0xc5c5c5, shininess: 5, flatShading: true }); const mesh = new THREE.Mesh(new THREE.Geometry(), material); scene.add(mesh);