@playcanvas/splat-transform 0.15.0 → 0.15.1

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.mjs CHANGED
@@ -59414,7 +59414,7 @@ class TextureHandler extends ResourceHandler {
59414
59414
  }
59415
59415
  }
59416
59416
 
59417
- var version = "0.15.0";
59417
+ var version = "0.15.1";
59418
59418
 
59419
59419
  class Column {
59420
59420
  name;
@@ -60740,7 +60740,11 @@ const readLcc = async (fileHandle, sourceName, options) => {
60740
60740
  const lccData = await read(fileHandle);
60741
60741
  const lccText = new TextDecoder().decode(lccData);
60742
60742
  const lccJson = JSON.parse(lccText);
60743
- const hasSH = lccJson.fileType === 'Quality';
60743
+ // FIXME: it seems some meta.lcc files at https://developer.xgrids.com/#/download?page=sampledata do not have
60744
+ // 'fileType' field, but do appear to contain spherical harmonics data. So for now assume presence of SH when
60745
+ // the field is missing.
60746
+ // See https://github.com/xgrids/LCCWhitepaper/issues/3
60747
+ const hasSH = lccJson.fileType !== 'Portable';
60744
60748
  const compressInfo = parseMeta(lccJson);
60745
60749
  const splats = lccJson.splats;
60746
60750
  const relatedFilename = (name) => join(dirname(sourceName ?? ''), name);