use flat shading

This commit is contained in:
Casper Lamboo 2018-03-07 11:52:42 +01:00
parent e1c4e2c1d4
commit d341cc28c9

View File

@ -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, flatShading: true });
const material = new THREE.MeshPhongMaterial({ color: muiTheme.palette.primary2Color, side: THREE.DoubleSide, specular: 0xc5c5c5, shininess: 5, flatShading: false });
const mesh = new THREE.Mesh(new THREE.Geometry(), material);
scene.add(mesh);