@needle-tools/gltf-build-pipeline 2.15.10 → 2.15.11

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.
@@ -413,11 +413,11 @@ async function createTextureLod(args, opts) {
413
413
  // Pass compression settings to the new texture
414
414
  const compressionSettingsExt = texture.getExtension(NEEDLE_compression_texture.EXTENSION_NAME);
415
415
  if (compressionSettingsExt !== undefined && compressionSettingsExt !== null && compressionSettingsExt.getExtensionDefinition) {
416
- logger.info("> Pass compression extension to new texture");
416
+ logger.debug("> Pass compression extension to new texture");
417
417
  const newExt = newDoc.createExtension(NEEDLE_compression_texture);
418
418
  const compressionSettings = compressionSettingsExt.getExtensionDefinition();
419
- if (compressionSettings?.mode === "none") {
420
- // if the mode is set to None then we keep that setting for the new texture
419
+ if (compressionSettings?.mode === "none" || compressionSettings?.mode === "webp" || compressionSettings?.mode === "UASTC" || compressionSettings?.mode === "ETC1S") {
420
+ // explicit compression mode set by the user — keep it for LOD textures
421
421
  }
422
422
  else {
423
423
  switch (opts.config.usecase) {
@@ -1 +1 @@
1
- export declare const version = "2.15.10";
1
+ export declare const version = "2.15.11";
@@ -1 +1 @@
1
- export const version = "2.15.10";
1
+ export const version = "2.15.11";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@needle-tools/gltf-build-pipeline",
3
- "version": "2.15.10",
3
+ "version": "2.15.11",
4
4
  "description": "Pipeline and tools for optimizing gltf files using gltf-transform and compression settings within glTF extensions",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",