storysplat-viewer 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -74901,9 +74901,9 @@ async function loadSplatAsset(scene, data, onProgress // Updated signature
|
|
|
74901
74901
|
// Ensure the SceneLoader has the necessary plugin for .splat if it's custom
|
|
74902
74902
|
// This might involve registering the plugin elsewhere in the application setup
|
|
74903
74903
|
// For example: SceneLoader.RegisterPlugin(new SplatLoaderPlugin());
|
|
74904
|
-
const result = await SceneLoader.ImportMeshAsync(
|
|
74905
|
-
|
|
74906
|
-
|
|
74904
|
+
const result = await SceneLoader.ImportMeshAsync("", // meshNames - empty string loads all
|
|
74905
|
+
modelUrl, // rootUrl - the full URL
|
|
74906
|
+
"", // sceneFilename - empty when using full URL
|
|
74907
74907
|
scene, (progressEvent) => {
|
|
74908
74908
|
if (onProgress) {
|
|
74909
74909
|
// Calculate percentage, handle indeterminate state
|