shx-3d-render

main
Jan Umbach 2024-06-13 21:39:20 +02:00
parent a5aace40d0
commit 23acdf8a79
1 changed files with 3 additions and 3 deletions

View File

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