@playcanvas/supersplat-viewer 1.13.3 → 1.14.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/index.js +3 -3
- package/package.json +1 -2
- package/public/index.css +5 -0
- package/public/index.html +9 -23
- package/public/index.js +19236 -51964
- package/public/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playcanvas/supersplat-viewer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.1",
|
|
4
4
|
"author": "PlayCanvas <support@playcanvas.com>",
|
|
5
5
|
"homepage": "https://github.com/playcanvas/supersplat-viewer#readme",
|
|
6
6
|
"description": "Viewer for https://superspl.at",
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
],
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@playcanvas/eslint-config": "2.1.0",
|
|
41
|
-
"@playcanvas/web-components": "0.3.0",
|
|
42
41
|
"@rollup/plugin-json": "6.1.0",
|
|
43
42
|
"@rollup/plugin-node-resolve": "16.0.3",
|
|
44
43
|
"@rollup/plugin-typescript": "12.3.0",
|
package/public/index.css
CHANGED
package/public/index.html
CHANGED
|
@@ -27,10 +27,14 @@
|
|
|
27
27
|
contents: fetch(contentUrl),
|
|
28
28
|
noui: url.searchParams.has('noui'),
|
|
29
29
|
noanim: url.searchParams.has('noanim'),
|
|
30
|
+
nofx: url.searchParams.has('nofx'),
|
|
31
|
+
hpr: url.searchParams.has('hpr') ? ['', '1', 'true', 'enable'].includes(url.searchParams.get('hpr')) : undefined,
|
|
30
32
|
ministats: url.searchParams.has('ministats'),
|
|
31
33
|
colorize: url.searchParams.has('colorize'),
|
|
32
34
|
unified: url.searchParams.has('unified'),
|
|
33
|
-
|
|
35
|
+
webgpu: url.searchParams.has('webgpu'),
|
|
36
|
+
gpusort: url.searchParams.has('gpusort'),
|
|
37
|
+
aa: url.searchParams.has('aa'),
|
|
34
38
|
};
|
|
35
39
|
|
|
36
40
|
window.sse = {
|
|
@@ -40,21 +44,7 @@
|
|
|
40
44
|
</script>
|
|
41
45
|
</head>
|
|
42
46
|
<body>
|
|
43
|
-
<
|
|
44
|
-
<pc-scene>
|
|
45
|
-
<!-- Camera (with XR support) -->
|
|
46
|
-
<pc-entity name="camera root">
|
|
47
|
-
<pc-entity name="camera"></pc-entity>
|
|
48
|
-
</pc-entity>
|
|
49
|
-
<!-- Light (for XR controllers) -->
|
|
50
|
-
<pc-entity name="light" rotation="35 45 0">
|
|
51
|
-
<pc-light color="white" intensity="1.5"></pc-light>
|
|
52
|
-
</pc-entity>
|
|
53
|
-
<!-- Splat -->
|
|
54
|
-
<pc-entity name="splat" rotation="0 0 180">
|
|
55
|
-
</pc-entity>
|
|
56
|
-
</pc-scene>
|
|
57
|
-
</pc-app>
|
|
47
|
+
<canvas id="application-canvas"></canvas>
|
|
58
48
|
|
|
59
49
|
<div id="ui">
|
|
60
50
|
<div id="poster"></div>
|
|
@@ -362,13 +352,9 @@
|
|
|
362
352
|
}
|
|
363
353
|
|
|
364
354
|
document.addEventListener('DOMContentLoaded', async () => {
|
|
365
|
-
const
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
settings
|
|
369
|
-
]);
|
|
370
|
-
|
|
371
|
-
const viewer = await main(appElement.app, cameraElement.entity, settingsJson, config);
|
|
355
|
+
const canvas = document.getElementById('application-canvas');
|
|
356
|
+
const settingsJson = await settings;
|
|
357
|
+
const viewer = await main(canvas, settingsJson, config);
|
|
372
358
|
});
|
|
373
359
|
</script>
|
|
374
360
|
</body>
|