Spaces:
Running
Running
Update viewer.js
Browse files
viewer.js
CHANGED
|
@@ -129,7 +129,7 @@ export async function initializeViewer(config, instanceId) {
|
|
| 129 |
// Load orbit camera scripts and gsplat script
|
| 130 |
const orbitAsset = new pc.Asset('orbit', 'script', { url: "https://mikafil-viewer-gs.static.hf.space/orbit-camera.js" });
|
| 131 |
app.assets.add(orbitAsset);
|
| 132 |
-
const gsplatAsset = new pc.Asset('gsplat', 'script', { url: "gsplat.js" }); // If using relative URL
|
| 133 |
|
| 134 |
app.assets.add(gsplatAsset);
|
| 135 |
|
|
|
|
| 129 |
// Load orbit camera scripts and gsplat script
|
| 130 |
const orbitAsset = new pc.Asset('orbit', 'script', { url: "https://mikafil-viewer-gs.static.hf.space/orbit-camera.js" });
|
| 131 |
app.assets.add(orbitAsset);
|
| 132 |
+
const gsplatAsset = new pc.Asset('gsplat', 'script', { url: "https://mikafil-viewer-gs.static.hf.space/gsplat.js" }); // If using relative URL
|
| 133 |
|
| 134 |
app.assets.add(gsplatAsset);
|
| 135 |
|