Spaces:
Running
Running
Update viewer.js
Browse files
viewer.js
CHANGED
|
@@ -160,7 +160,7 @@ export async function initializeViewer(config, instanceId) {
|
|
| 160 |
// βββ 8. Declare assets: PLY + orbitβcamera.js + GLB + HDR βββββββββββββββββββ
|
| 161 |
const assets = {
|
| 162 |
model: new pc.Asset('gsplat', 'gsplat', { url: plyUrl }),
|
| 163 |
-
orbit: new pc.Asset('script', 'script', { url: "
|
| 164 |
galerie: new pc.Asset('galerie', 'container', { url: glbUrl }),
|
| 165 |
hdr: new pc.Asset(
|
| 166 |
'hdr',
|
|
|
|
| 160 |
// βββ 8. Declare assets: PLY + orbitβcamera.js + GLB + HDR βββββββββββββββββββ
|
| 161 |
const assets = {
|
| 162 |
model: new pc.Asset('gsplat', 'gsplat', { url: plyUrl }),
|
| 163 |
+
orbit: new pc.Asset('script', 'script', { url: "./orbit-camera.js" }),
|
| 164 |
galerie: new pc.Asset('galerie', 'container', { url: glbUrl }),
|
| 165 |
hdr: new pc.Asset(
|
| 166 |
'hdr',
|