@playcanvas/supersplat-viewer 1.9.0 → 1.10.0
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/README.md +13 -9
- package/dist/index.js +2 -2
- package/package.json +5 -5
- package/public/index.html +1 -0
- package/public/index.js +827 -271
- package/public/index.js.map +1 -1
package/README.md
CHANGED
|
@@ -16,15 +16,18 @@ This is the official viewer for [SuperSplat](https://superspl.at).
|
|
|
16
16
|
The web app compiles to a simple, self-contained static website.
|
|
17
17
|
|
|
18
18
|
The app supports a few useful URL parameters (though please note these are subject to change):
|
|
19
|
-
- `&settings=url` - specify the URL of the `settings.json` file (default is `./settings.json`)
|
|
20
|
-
- `&content=url` - specify the URL of the `scene.compressed.ply` file (default is `./scene.compressed.ply`)
|
|
21
19
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
| Parameter | Description | Default |
|
|
21
|
+
| --------- | ----------- | ------- |
|
|
22
|
+
| `settings` | URL of the `settings.json` file | `./settings.json` |
|
|
23
|
+
| `content` | URL of the scene file (`.ply`, `.sog`, `.meta.json`, `.lod-meta.json`) | `./scene.compressed.ply` |
|
|
24
|
+
| `skybox` | URL of an equirectangular skybox image | |
|
|
25
|
+
| `poster` | URL of an image to show while loading | |
|
|
26
|
+
| `noui` | Hide UI | |
|
|
27
|
+
| `noanim` | Start with animation paused | |
|
|
28
|
+
| `ministats` | Show runtime CPU/GPU performance graphs | |
|
|
29
|
+
| `unified` | Force unified rendering mode | |
|
|
30
|
+
| `aa` | Enable antialiasing (not supported in unified mode) | |
|
|
28
31
|
|
|
29
32
|
The web app source files are available as strings for templating when you import the package from npm:
|
|
30
33
|
|
|
@@ -114,6 +117,7 @@ type ExperienceSettings = {
|
|
|
114
117
|
"position": [0,1,-1],
|
|
115
118
|
"target": [0,0,0],
|
|
116
119
|
"startAnim": "orbit"
|
|
117
|
-
}
|
|
120
|
+
},
|
|
121
|
+
"animTracks": []
|
|
118
122
|
}
|
|
119
123
|
```
|