@playcanvas/supersplat-viewer 1.29.2 → 1.29.3
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 +1 -1
- package/package.json +1 -1
- package/public/index.js +17 -14
- package/public/index.js.map +1 -1
package/package.json
CHANGED
package/public/index.js
CHANGED
|
@@ -83307,7 +83307,7 @@ const importSettings = (settings) => {
|
|
|
83307
83307
|
return result;
|
|
83308
83308
|
};
|
|
83309
83309
|
|
|
83310
|
-
var version = "1.29.
|
|
83310
|
+
var version = "1.29.3";
|
|
83311
83311
|
|
|
83312
83312
|
class Tooltip {
|
|
83313
83313
|
register;
|
|
@@ -90575,6 +90575,22 @@ class Viewer {
|
|
|
90575
90575
|
return result;
|
|
90576
90576
|
};
|
|
90577
90577
|
});
|
|
90578
|
+
const { gsplat } = app.scene;
|
|
90579
|
+
// Scene-level gsplat params. Set before any load resolves: streaming starts on the first
|
|
90580
|
+
// frame after the gsplat component is created, and lodUpdateAngle / lodBehindPenalty shape
|
|
90581
|
+
// which nodes that first pass pulls in.
|
|
90582
|
+
// these two allow LOD behind camera to drop, saves lots of splats
|
|
90583
|
+
gsplat.lodUpdateAngle = 90;
|
|
90584
|
+
gsplat.lodBehindPenalty = 5;
|
|
90585
|
+
gsplat.minContribution = 1;
|
|
90586
|
+
gsplat.alphaClip = 1 / 255;
|
|
90587
|
+
gsplat.antiAlias = config.aa;
|
|
90588
|
+
// same performance, but rotating on slow devices does not give us unsorted splats on sides
|
|
90589
|
+
gsplat.radialSorting = true;
|
|
90590
|
+
// apply before streaming starts: this bakes into the work-buffer copies as
|
|
90591
|
+
// persistent per-splat data, so the first loaded splats must already carry
|
|
90592
|
+
// it (later changes only apply on a full rebuild)
|
|
90593
|
+
gsplat.debug = config.colorize ? GSPLAT_DEBUG_LOD : GSPLAT_DEBUG_NONE;
|
|
90578
90594
|
// Clamp to the coarsest LOD for the fastest possible reveal. This chains off gsplatLoad
|
|
90579
90595
|
// alone (not the Promise.all below): the octree starts streaming on the first frame after
|
|
90580
90596
|
// the component is created, and already-requested files are never cancelled — so waiting
|
|
@@ -90637,7 +90653,6 @@ class Viewer {
|
|
|
90637
90653
|
this.navCursor = new NavCursor(app, camera, collision ?? null, events, state);
|
|
90638
90654
|
}
|
|
90639
90655
|
this.debugPanel = new DebugPanel(global, this.cameraManager);
|
|
90640
|
-
const { gsplat } = app.scene;
|
|
90641
90656
|
// quality budget
|
|
90642
90657
|
const budgets = {
|
|
90643
90658
|
mobile: {
|
|
@@ -90669,18 +90684,6 @@ class Viewer {
|
|
|
90669
90684
|
// reveal once full quality has finished loading (used for screenshots)
|
|
90670
90685
|
applyPerfSettings();
|
|
90671
90686
|
}
|
|
90672
|
-
// these two allow LOD behind camera to drop, saves lots of splats
|
|
90673
|
-
gsplat.lodUpdateAngle = 90;
|
|
90674
|
-
gsplat.lodBehindPenalty = 5;
|
|
90675
|
-
gsplat.minContribution = 1;
|
|
90676
|
-
gsplat.alphaClip = 1 / 255;
|
|
90677
|
-
gsplat.antiAlias = config.aa;
|
|
90678
|
-
// same performance, but rotating on slow devices does not give us unsorted splats on sides
|
|
90679
|
-
gsplat.radialSorting = true;
|
|
90680
|
-
// apply before streaming starts: this bakes into the work-buffer copies as
|
|
90681
|
-
// persistent per-splat data, so the first loaded splats must already carry
|
|
90682
|
-
// it (later changes only apply on a full rebuild)
|
|
90683
|
-
gsplat.debug = config.colorize ? GSPLAT_DEBUG_LOD : GSPLAT_DEBUG_NONE;
|
|
90684
90687
|
const eventHandler = app.systems.gsplat;
|
|
90685
90688
|
// Once on demand (autoRender is disabled at ready, below), render when gsplat streaming
|
|
90686
90689
|
// produces new data a render would show (new LOD/world-state, pending sort). This also
|