@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playcanvas/supersplat-viewer",
3
- "version": "1.10.2",
3
+ "version": "1.10.3",
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",
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
- // keep resolution under 4k on desktop and HD on mobile
102106
- const maxRatio = (platform.mobile ? 1920 : 3024) / Math.max(screen.width, screen.height);
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.2";
102915
+ var version = "1.10.3";
102915
102916
 
102916
102917
  const loadGsplat = async (app, config, progressCallback) => {
102917
102918
  const { contents, contentUrl, unified, aa } = config;