use flat shading

This commit is contained in:
Casper Lamboo 2018-03-06 12:25:49 +01:00
parent 34a2b6cafc
commit c4d8d1136a

View File

@ -42,7 +42,7 @@ export function createScene({ pixelRatio, muiTheme }) {
const light = new THREE.AmbientLight(0x656565); const light = new THREE.AmbientLight(0x656565);
scene.add(light); 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); const mesh = new THREE.Mesh(new THREE.Geometry(), material);
scene.add(mesh); scene.add(mesh);