@galacean/engine-core 1.2.0-alpha.4 → 1.2.0-alpha.8

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.
@@ -3419,7 +3419,7 @@ var ShaderFactory = /*#__PURE__*/ function() {
3419
3419
  Logger.error('Shader slice "' + match.trim() + '" not founded.');
3420
3420
  return "";
3421
3421
  }
3422
- return ShaderFactory.parseIncludes(replace);
3422
+ return ShaderFactory.parseIncludes(replace, regex);
3423
3423
  };
3424
3424
  return src.replace(regex, replace);
3425
3425
  };
@@ -19592,8 +19592,8 @@ ShaderPool.init();
19592
19592
  set: function set(value) {
19593
19593
  if (this._width !== value) {
19594
19594
  this._width = value;
19595
+ this._onWidthChanged(value);
19595
19596
  this._sizeUpdateFlagManager.dispatch();
19596
- this._onSizeChanged(value, this._width);
19597
19597
  }
19598
19598
  }
19599
19599
  },
@@ -19607,8 +19607,8 @@ ShaderPool.init();
19607
19607
  set: function set(value) {
19608
19608
  if (this._height !== value) {
19609
19609
  this._height = value;
19610
+ this._onHeightChange(value);
19610
19611
  this._sizeUpdateFlagManager.dispatch();
19611
- this._onSizeChanged(this._width, value);
19612
19612
  }
19613
19613
  }
19614
19614
  }
@@ -29962,7 +29962,8 @@ __decorate([
29962
29962
  var transform = this._renderer.entity.transform;
29963
29963
  var shape = this.emission.shape;
29964
29964
  for(var i = 0; i < count; i++){
29965
- if (shape) {
29965
+ var _shape;
29966
+ if ((_shape = shape) == null ? void 0 : _shape.enabled) {
29966
29967
  shape._generatePositionAndDirection(this.emission._shapeRand, time, position, direction);
29967
29968
  var positionScale = this.main._getPositionScale();
29968
29969
  position.multiply(positionScale);
@@ -30542,7 +30543,7 @@ __decorate([
30542
30543
  * Base class for all particle shapes.
30543
30544
  */ var BaseShape = /*#__PURE__*/ function() {
30544
30545
  function BaseShape() {
30545
- /** Specifies whether the ShapeModule is enabled or disabled. */ this.enable = true;
30546
+ /** Specifies whether the ShapeModule is enabled or disabled. */ this.enabled = true;
30546
30547
  /** Randomizes the starting direction of particles. */ this.randomDirectionAmount = 0;
30547
30548
  }
30548
30549
  var _proto = BaseShape.prototype;
package/dist/module.js CHANGED
@@ -3414,7 +3414,7 @@ var ShaderFactory = /*#__PURE__*/ function() {
3414
3414
  Logger.error('Shader slice "' + match.trim() + '" not founded.');
3415
3415
  return "";
3416
3416
  }
3417
- return ShaderFactory.parseIncludes(replace);
3417
+ return ShaderFactory.parseIncludes(replace, regex);
3418
3418
  };
3419
3419
  return src.replace(regex, replace);
3420
3420
  };
@@ -19587,8 +19587,8 @@ ShaderPool.init();
19587
19587
  set: function set(value) {
19588
19588
  if (this._width !== value) {
19589
19589
  this._width = value;
19590
+ this._onWidthChanged(value);
19590
19591
  this._sizeUpdateFlagManager.dispatch();
19591
- this._onSizeChanged(value, this._width);
19592
19592
  }
19593
19593
  }
19594
19594
  },
@@ -19602,8 +19602,8 @@ ShaderPool.init();
19602
19602
  set: function set(value) {
19603
19603
  if (this._height !== value) {
19604
19604
  this._height = value;
19605
+ this._onHeightChange(value);
19605
19606
  this._sizeUpdateFlagManager.dispatch();
19606
- this._onSizeChanged(this._width, value);
19607
19607
  }
19608
19608
  }
19609
19609
  }
@@ -29957,7 +29957,8 @@ __decorate([
29957
29957
  var transform = this._renderer.entity.transform;
29958
29958
  var shape = this.emission.shape;
29959
29959
  for(var i = 0; i < count; i++){
29960
- if (shape) {
29960
+ var _shape;
29961
+ if ((_shape = shape) == null ? void 0 : _shape.enabled) {
29961
29962
  shape._generatePositionAndDirection(this.emission._shapeRand, time, position, direction);
29962
29963
  var positionScale = this.main._getPositionScale();
29963
29964
  position.multiply(positionScale);
@@ -30537,7 +30538,7 @@ __decorate([
30537
30538
  * Base class for all particle shapes.
30538
30539
  */ var BaseShape = /*#__PURE__*/ function() {
30539
30540
  function BaseShape() {
30540
- /** Specifies whether the ShapeModule is enabled or disabled. */ this.enable = true;
30541
+ /** Specifies whether the ShapeModule is enabled or disabled. */ this.enabled = true;
30541
30542
  /** Randomizes the starting direction of particles. */ this.randomDirectionAmount = 0;
30542
30543
  }
30543
30544
  var _proto = BaseShape.prototype;