From c8394665ec53546aff4fba1414533287f837149c Mon Sep 17 00:00:00 2001 From: Diego Marcos Segura Date: Thu, 10 Jul 2025 23:06:58 -0400 Subject: [PATCH] Fix example importmaps --- examples/splat-transitions/index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/splat-transitions/index.html b/examples/splat-transitions/index.html index 7f26c55..6a9ab8f 100644 --- a/examples/splat-transitions/index.html +++ b/examples/splat-transitions/index.html @@ -28,6 +28,7 @@ { "imports": { "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", "@sparkjsdev/spark": "/dist/spark.module.js" } @@ -40,9 +41,9 @@ SplatMesh, } from "@sparkjsdev/spark"; import * as THREE from "three"; - import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js"; - import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader.js"; - import { GLTFExporter } from "three/examples/jsm/exporters/GLTFExporter.js"; + import { OrbitControls } from 'three/addons/controls/OrbitControls.js'; + import { GLTFLoader } from "three/addons/loaders/GLTFLoader.js"; + import { GLTFExporter } from "three/addons/exporters/GLTFExporter.js"; import { getAssetFileURL } from "/examples/js/get-asset-url.js"; import { GUI } from "lil-gui";