@playcanvas/supersplat-viewer 1.43.1 → 1.43.2

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/viewer.js CHANGED
@@ -6837,11 +6837,10 @@ class DirectSplatSource {
6837
6837
  device.computeDispatch([compute], 'sse-splat-decode-sh');
6838
6838
  this.decodedSH.set(resource, { texture, compute });
6839
6839
  }
6840
- // the packed layout applies to sog v2 files, the only ones the repack reads. The engine gives
6841
- // sog v3 files a codebook too, but no quats texture: their rotation is in the alpha channels
6840
+ // the packed layout applies to sog v2 files, the only ones the repack reads. Sog v3 files have
6841
+ // the same textures, but a different rotation and opacity encoding and 24-bit sh labels
6842
6842
  packedActive() {
6843
- const textures = this.resource?.streams.textures;
6844
- return !!textures && textures.has('sogCodebook') && textures.has('quats');
6843
+ return this.resource?.gsplatData?.meta?.version === 2;
6845
6844
  }
6846
6845
  hasSH() {
6847
6846
  const textures = this.resource?.streams.textures;
@@ -10137,7 +10136,7 @@ const importSettings = (settings) => {
10137
10136
  return result;
10138
10137
  };
10139
10138
 
10140
- var version = "1.43.1";
10139
+ var version = "1.43.2";
10141
10140
 
10142
10141
  class Tooltip {
10143
10142
  register;