babylonjs-serializers 5.26.1 → 5.27.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.
@@ -5554,6 +5554,9 @@ var _GLTFMaterialExporter = /** @class */ (function () {
5554
5554
  case "image/png":
5555
5555
  mimeType = "image/png" /* PNG */;
5556
5556
  break;
5557
+ case "image/webp":
5558
+ mimeType = "image/webp" /* WEBP */;
5559
+ break;
5557
5560
  }
5558
5561
  }
5559
5562
  return [2 /*return*/, this._createBase64FromCanvasAsync(pixels, size.width, size.height, mimeType).then(function (base64Data) {
@@ -5603,7 +5606,7 @@ var _GLTFMaterialExporter = /** @class */ (function () {
5603
5606
  textureName = "".concat(baseTextureName, "_").concat(core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Tools.RandomId()).concat(extension);
5604
5607
  }
5605
5608
  imageData[textureName] = imageValues;
5606
- if (mimeType === "image/jpeg" /* JPEG */ || mimeType === "image/png" /* PNG */) {
5609
+ if (mimeType === "image/jpeg" /* JPEG */ || mimeType === "image/png" /* PNG */ || mimeType === "image/webp" /* WEBP */) {
5607
5610
  var glTFImage = {
5608
5611
  name: baseTextureName,
5609
5612
  uri: textureName,