shx-3d-render
parent
5f808f0c30
commit
1775b234b0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue