@galacean/engine 2.0.0-alpha.7 → 2.0.0-alpha.9

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/browser.js CHANGED
@@ -22831,7 +22831,7 @@
22831
22831
  this._setDirtyFlagTrue(4 | 8);
22832
22832
  };
22833
22833
  _proto._isTextNoVisible = function _isTextNoVisible() {
22834
- return this._text === "" || this._fontSize === 0 || this.enableWrapping && this.width <= 0 || this.overflowMode === OverflowMode.Truncate && this.height <= 0;
22834
+ return !this._font || this._text === "" || this._fontSize === 0 || this.enableWrapping && this.width <= 0 || this.overflowMode === OverflowMode.Truncate && this.height <= 0;
22835
22835
  };
22836
22836
  _proto._buildChunk = function _buildChunk(textChunk, count) {
22837
22837
  var _this_color = this.color, r = _this_color.r, g = _this_color.g, b = _this_color.b, a = _this_color.a;
@@ -51622,7 +51622,8 @@
51622
51622
  var scaleFactor = Math.pow(2, pixels[srcIndex + 3] - 128) / 255;
51623
51623
  var dstIndex = y * texSize * 4 + x * 4;
51624
51624
  for(var c = 0; c < 3; c++){
51625
- floatView[0] = pixels[srcIndex + c] * scaleFactor;
51625
+ // Clamp to half-float max (65504) to prevent Infinity in R16G16B16A16
51626
+ floatView[0] = Math.min(pixels[srcIndex + c] * scaleFactor, 65504);
51626
51627
  var f = uint32View[0];
51627
51628
  var e = f >> 23 & 0x1ff;
51628
51629
  facePixels[dstIndex + c] = baseTable[e] + ((f & 0x007fffff) >> shiftTable[e]);
@@ -52713,7 +52714,7 @@
52713
52714
  ], EXT_texture_webp);
52714
52715
 
52715
52716
  //@ts-ignore
52716
- var version = "2.0.0-alpha.7";
52717
+ var version = "2.0.0-alpha.9";
52717
52718
  console.log("Galacean Engine Version: " + version);
52718
52719
  for(var key in CoreObjects){
52719
52720
  Loader.registerClass(key, CoreObjects[key]);