|
|
@@ -12,6 +12,19 @@
|
|
|
<body>
|
|
|
<link rel="stylesheet" href="css/main.css">
|
|
|
|
|
|
+ <script type="importmap">
|
|
|
+ {
|
|
|
+ "imports": {
|
|
|
+ "three": "../build/three.module.js",
|
|
|
+ "three/addons/": "../examples/jsm/",
|
|
|
+
|
|
|
+ "three/examples/": "../examples/",
|
|
|
+ "three-gpu-pathtracer": "https://cdn.jsdelivr.net/npm/three-gpu-pathtracer@0.0.23/build/index.module.js",
|
|
|
+ "three-mesh-bvh": "https://cdn.jsdelivr.net/npm/three-mesh-bvh@0.7.4/build/index.module.js"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+
|
|
|
<script src="../examples/jsm/libs/draco/draco_encoder.js"></script>
|
|
|
|
|
|
<link rel="stylesheet" href="js/libs/codemirror/codemirror.css">
|
|
|
@@ -45,19 +58,6 @@
|
|
|
<script src="js/libs/tern-threejs/threejs.js"></script>
|
|
|
<script src="js/libs/signals.min.js"></script>
|
|
|
|
|
|
- <script type="importmap">
|
|
|
- {
|
|
|
- "imports": {
|
|
|
- "three": "../build/three.module.js",
|
|
|
- "three/addons/": "../examples/jsm/",
|
|
|
-
|
|
|
- "three/examples/": "../examples/",
|
|
|
- "three-gpu-pathtracer": "https://cdn.jsdelivr.net/npm/three-gpu-pathtracer@0.0.23/build/index.module.js",
|
|
|
- "three-mesh-bvh": "https://cdn.jsdelivr.net/npm/three-mesh-bvh@0.7.4/build/index.module.js"
|
|
|
- }
|
|
|
- }
|
|
|
- </script>
|
|
|
-
|
|
|
<script type="module">
|
|
|
|
|
|
import * as THREE from 'three';
|