mirror of
https://github.com/storytold/spark.git
synced 2026-10-27 08:58:05 +00:00
Add missing import path to multiple viewpoints example
This commit is contained in:
@@ -17,6 +17,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/",
|
||||||
"@forge-gfx/forge": "/dist/forge.module.js"
|
"@forge-gfx/forge": "/dist/forge.module.js"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -24,7 +25,8 @@
|
|||||||
<script type="module">
|
<script type="module">
|
||||||
import * as THREE from "three";
|
import * as THREE from "three";
|
||||||
import { ForgeRenderer, ForgeViewpoint, SplatMesh } from "@forge-gfx/forge";
|
import { ForgeRenderer, ForgeViewpoint, SplatMesh } from "@forge-gfx/forge";
|
||||||
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
|
|
||||||
|
import { GLTFLoader } from "three/addons/loaders/GLTFLoader.js";
|
||||||
import { getAssetFileURL } from "/examples/js/get-asset-url.js";
|
import { getAssetFileURL } from "/examples/js/get-asset-url.js";
|
||||||
|
|
||||||
const scene = new THREE.Scene();
|
const scene = new THREE.Scene();
|
||||||
|
|||||||
Reference in New Issue
Block a user