This vendors BufferGeometryUtils, rewires GLTFLoader imports to local paths, and adds an import map fallback so bare three specifiers resolve correctly in browser. Made-with: Cursor
This commit is contained in:
@@ -138,6 +138,14 @@
|
||||
</div>
|
||||
|
||||
<script src="./vendor/maplibre/maplibre-gl.js"></script>
|
||||
<script type="importmap">
|
||||
{
|
||||
"imports": {
|
||||
"three": "./vendor/three/three.module.js",
|
||||
"three/": "./vendor/three/"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script type="module" src="./maplibre-demo.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Vendored
+1
-1
@@ -65,7 +65,7 @@ import {
|
||||
SRGBColorSpace,
|
||||
InstancedBufferAttribute
|
||||
} from './three.module.js';
|
||||
import { toTrianglesDrawMode } from '../utils/BufferGeometryUtils.js';
|
||||
import { toTrianglesDrawMode } from './utils/BufferGeometryUtils.js';
|
||||
|
||||
class GLTFLoader extends Loader {
|
||||
|
||||
|
||||
+1373
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user