mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 13:37:58 +01:00
use flat shading
This commit is contained in:
parent
34a2b6cafc
commit
c4d8d1136a
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user