@playcanvas/supersplat-viewer 1.10.2 → 1.10.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 +4 -3
- package/public/index.js.map +1 -1
package/package.json
CHANGED
package/public/index.js
CHANGED
|
@@ -102102,8 +102102,9 @@ class Viewer {
|
|
|
102102
102102
|
updateHorizontalFov();
|
|
102103
102103
|
// handle HQ mode changes
|
|
102104
102104
|
const updateHqMode = () => {
|
|
102105
|
-
//
|
|
102106
|
-
|
|
102105
|
+
// limit the backbuffer to 4k on desktop and HD on mobile
|
|
102106
|
+
// we use the shorter dimension so ultra-wide (or high) monitors still work correctly.
|
|
102107
|
+
const maxRatio = (platform.mobile ? 1080 : 2160) / Math.min(screen.width, screen.height);
|
|
102107
102108
|
// half pixel resolution with hq mode disabled
|
|
102108
102109
|
graphicsDevice.maxPixelRatio = (state.hqMode ? 1.0 : 0.5) * Math.min(maxRatio, window.devicePixelRatio);
|
|
102109
102110
|
app.renderNextFrame = true;
|
|
@@ -102911,7 +102912,7 @@ const initXr = (global) => {
|
|
|
102911
102912
|
});
|
|
102912
102913
|
};
|
|
102913
102914
|
|
|
102914
|
-
var version = "1.10.
|
|
102915
|
+
var version = "1.10.3";
|
|
102915
102916
|
|
|
102916
102917
|
const loadGsplat = async (app, config, progressCallback) => {
|
|
102917
102918
|
const { contents, contentUrl, unified, aa } = config;
|