shx-3d-render

main
Jan Umbach 2024-06-13 22:51:57 +02:00
parent 5f0d3520df
commit 8b120e810e
9 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@
}
}
import("{{ 'three-js/loaders/STLLoader.js' | asset_url }}").then((module) => {
import("{{ 'tjs-STLLoader.js' | asset_url }}").then((module) => {
tJS.addons.STLLoader = module.STLLoader;
tJS.loadedAddons++;
@ -135,7 +135,7 @@
if(!threeJSisLoading && !threeJSloaded) {
// load threejs
let script = document.createElement('script');
script.src = "{{ 'three-js/three.module.min.js' | asset_url }}";
script.src = "{{ 'tjs-three.module.min.js' | asset_url }}";
script.id = 'threejs-script';
script.type = "module";
document.head.appendChild(script);
@ -144,7 +144,7 @@
threeJSloaded = true;
console.log('threejs loaded');
import("{{ 'three-js/three.module.min.js' | asset_url }}").then(THREE => {
import("{{ 'tjs-three.module.min.js' | asset_url }}").then(THREE => {
tJS.threeJS = THREE;
// calc width and height