mirror of
https://github.com/storytold/spark.git
synced 2026-10-24 08:36:08 +00:00
Fix example importmaps
This commit is contained in:
@@ -28,6 +28,7 @@
|
|||||||
{
|
{
|
||||||
"imports": {
|
"imports": {
|
||||||
"three": "/examples/js/vendor/three/build/three.module.js",
|
"three": "/examples/js/vendor/three/build/three.module.js",
|
||||||
|
"three/addons/": "/examples/js/vendor/three/examples/jsm/",
|
||||||
"lil-gui": "/examples/js/vendor/lil-gui/dist/lil-gui.esm.js",
|
"lil-gui": "/examples/js/vendor/lil-gui/dist/lil-gui.esm.js",
|
||||||
"@sparkjsdev/spark": "/dist/spark.module.js"
|
"@sparkjsdev/spark": "/dist/spark.module.js"
|
||||||
}
|
}
|
||||||
@@ -40,9 +41,9 @@
|
|||||||
SplatMesh,
|
SplatMesh,
|
||||||
} from "@sparkjsdev/spark";
|
} from "@sparkjsdev/spark";
|
||||||
import * as THREE from "three";
|
import * as THREE from "three";
|
||||||
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js";
|
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
|
||||||
import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader.js";
|
import { GLTFLoader } from "three/addons/loaders/GLTFLoader.js";
|
||||||
import { GLTFExporter } from "three/examples/jsm/exporters/GLTFExporter.js";
|
import { GLTFExporter } from "three/addons/exporters/GLTFExporter.js";
|
||||||
import { getAssetFileURL } from "/examples/js/get-asset-url.js";
|
import { getAssetFileURL } from "/examples/js/get-asset-url.js";
|
||||||
import { GUI } from "lil-gui";
|
import { GUI } from "lil-gui";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user