shx-3d-render

main
Jan Umbach 2024-06-13 21:31:03 +02:00
parent 0da55ff310
commit 9df4a83e40
1 changed files with 3 additions and 3 deletions

View File

@ -177,11 +177,11 @@
// log size in kB
console.log(blob.size / 1024 + 'kB');
const material = new THREE.MeshBasicMaterial({ color: 0x00ff00 });
const material = new threeJS.MeshBasicMaterial({ color: 0x00ff00 });
const stl_cube = new THREE.STLLoader();
const stl_cube = new threeJS.STLLoader();
stl_cube.load(blob, function (geometry) {
stl_cube = new THREE.Mesh(geometry, material);
stl_cube = new threeJS.Mesh(geometry, material);