mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-10 16:33:24 +01:00
enable backface culling
This commit is contained in:
parent
4e291b2370
commit
9e28b3b317
@ -43,7 +43,7 @@ export function createScene(canvas, props, state) {
|
|||||||
const light = new THREE.AmbientLight(0x808080);
|
const light = new THREE.AmbientLight(0x808080);
|
||||||
scene.add(light);
|
scene.add(light);
|
||||||
|
|
||||||
const mesh = new THREE.Mesh(geometry, new THREE.MeshStandardMaterial({ color: 0x2194ce }));
|
const mesh = new THREE.Mesh(geometry, new THREE.MeshStandardMaterial({ color: 0x2194ce, side: THREE.DoubleSide }));
|
||||||
placeOnGround(mesh);
|
placeOnGround(mesh);
|
||||||
scene.add(mesh);
|
scene.add(mesh);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user