From 35cca4824af402660d51ecfffd9611f07485e216 Mon Sep 17 00:00:00 2001 From: Xavier <115213172+DRealCharlesXavier@users.noreply.github.com> Date: Sun, 1 Sep 2024 16:57:44 -1100 Subject: [PATCH] Update index.ts Import and add a GLB file --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index b64e5e6..bc1ced2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -62,7 +62,7 @@ async function setupViewer(){ await viewer.addPlugin(CanvasSnipperPlugin) // Import and add a GLB file. - await viewer.load("./assets/classic-watch.glb") + await manager.addFromPath("./assets/classic-watch.glb") // Load an environment map if not set in the glb file // await viewer.setEnvironmentMap("./assets/environment.hdr");