@playcanvas/supersplat-viewer 1.35.1 → 1.36.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 +38 -35
- package/dist/index.js +3 -3
- package/dist/viewer.css +7 -0
- package/dist/viewer.d.ts +16 -0
- package/dist/viewer.js +3862 -266
- package/dist/viewer.js.map +1 -1
- package/package.json +5 -4
- package/public/index.css +7 -0
- package/public/index.html +3 -0
- package/public/index.js +3786 -190
- package/public/index.js.map +1 -1
package/dist/viewer.css
CHANGED
|
@@ -838,6 +838,7 @@
|
|
|
838
838
|
position: absolute;
|
|
839
839
|
left: 0;
|
|
840
840
|
top: 0;
|
|
841
|
+
will-change: transform;
|
|
841
842
|
display: none;
|
|
842
843
|
align-items: center;
|
|
843
844
|
justify-content: center;
|
|
@@ -872,6 +873,9 @@
|
|
|
872
873
|
.sse-viewer .sse-annotations > .sse-annotation {
|
|
873
874
|
--sse-annotation-bkg: rgba(0, 0, 0, 0.9);
|
|
874
875
|
position: absolute;
|
|
876
|
+
left: 0;
|
|
877
|
+
top: 0;
|
|
878
|
+
will-change: transform;
|
|
875
879
|
width: -moz-max-content;
|
|
876
880
|
width: max-content;
|
|
877
881
|
max-width: min(280px, 100% - 16px);
|
|
@@ -912,6 +916,9 @@
|
|
|
912
916
|
.sse-viewer .sse-annotations > .sse-annotation:has(> .sse-annotation-text:empty) > .sse-annotation-text {
|
|
913
917
|
display: none;
|
|
914
918
|
}
|
|
919
|
+
.sse-viewer .sse-annotations > .sse-annotation:has(> .sse-annotation-title:empty):has(> .sse-annotation-text:empty) {
|
|
920
|
+
display: none;
|
|
921
|
+
}
|
|
915
922
|
.sse-viewer .sse-annotations > .sse-annotation.sse-arrow-right::before, .sse-viewer .sse-annotations > .sse-annotation.sse-arrow-left::before {
|
|
916
923
|
content: "";
|
|
917
924
|
position: absolute;
|
package/dist/viewer.d.ts
CHANGED
|
@@ -53,6 +53,22 @@ type ViewerFlags = {
|
|
|
53
53
|
fullload?: boolean;
|
|
54
54
|
/** Render with antialiasing. */
|
|
55
55
|
aa?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Opt in to the experimental stochastic splat renderer: unsorted, depth-tested splats whose
|
|
58
|
+
* depth buffer also serves picking. WebGPU only; ignored on WebGL and while an XR session is
|
|
59
|
+
* active, where the engine's sorted renderer draws. Fixed for the life of the viewer.
|
|
60
|
+
*/
|
|
61
|
+
stochastic?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Developer knob for the stochastic renderer: the data path that feeds it. Default
|
|
64
|
+
* `workbuffer`, the engine's work buffer.
|
|
65
|
+
*/
|
|
66
|
+
splatSource?: 'workbuffer' | 'direct' | 'light';
|
|
67
|
+
/**
|
|
68
|
+
* Developer knob for the stochastic renderer: comma-separated `key:value` experiment
|
|
69
|
+
* switches, e.g. `spp:1,compose:none`.
|
|
70
|
+
*/
|
|
71
|
+
variant?: string;
|
|
56
72
|
/** Splat budget in millions, overriding the platform and performance-mode table. */
|
|
57
73
|
budget?: number;
|
|
58
74
|
/** Render the collision heatmap debug overlay (WebGPU only). */
|