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