@playcanvas/supersplat-viewer 1.35.2 → 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 +2 -2
- package/dist/viewer.d.ts +16 -0
- package/dist/viewer.js +3858 -263
- package/dist/viewer.js.map +1 -1
- package/package.json +5 -4
- package/public/index.html +3 -0
- package/public/index.js +3782 -187
- package/public/index.js.map +1 -1
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). */
|