@galacean/engine-ui 1.5.13 → 1.5.15

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
@@ -2369,6 +2369,7 @@
2369
2369
  };
2370
2370
  _proto._buildChunk = function _buildChunk(textChunk, count) {
2371
2371
  var _this_color = this.color, r = _this_color.r, g = _this_color.g, b = _this_color.b, a = _this_color.a;
2372
+ var finalAlpha = a * this._getGlobalAlpha();
2372
2373
  var tempIndices = engine.CharRenderInfo.triangles;
2373
2374
  var tempIndicesLength = tempIndices.length;
2374
2375
  var subChunk = textChunk.subChunk = this._getChunkManager().allocateSubChunk(count * 4);
@@ -2389,7 +2390,7 @@
2389
2390
  vertices[vo + 2] = r;
2390
2391
  vertices[vo + 3] = g;
2391
2392
  vertices[vo + 4] = b;
2392
- vertices[vo + 5] = a;
2393
+ vertices[vo + 5] = finalAlpha;
2393
2394
  }
2394
2395
  }
2395
2396
  return subChunk;