shx-3d-render

main
Jan Umbach 2024-06-13 20:16:22 +02:00
parent 5f808f0c30
commit 1775b234b0
1 changed files with 2 additions and 2 deletions

View File

@ -107,11 +107,11 @@
document.head.appendChild(script);
script.addEventListener('load', () => {
import * as THREE from 'three';
threeJSloaded = true;
console.log('threejs loaded');
import * as THREE from "{{ 'three.module.min.js' | asset_url }}";
// Your Three.js code goes here
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);