@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.
- package/dist/main.js +6 -5
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +6 -5
- package/dist/module.js +6 -5
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/Canvas.d.ts +2 -1
- package/types/particle/modules/shape/BaseShape.d.ts +1 -1
package/dist/main.js
CHANGED
|
@@ -3418,7 +3418,7 @@ var ShaderFactory = /*#__PURE__*/ function() {
|
|
|
3418
3418
|
Logger.error('Shader slice "' + match.trim() + '" not founded.');
|
|
3419
3419
|
return "";
|
|
3420
3420
|
}
|
|
3421
|
-
return ShaderFactory.parseIncludes(replace);
|
|
3421
|
+
return ShaderFactory.parseIncludes(replace, regex);
|
|
3422
3422
|
};
|
|
3423
3423
|
return src.replace(regex, replace);
|
|
3424
3424
|
};
|
|
@@ -19591,8 +19591,8 @@ ShaderPool.init();
|
|
|
19591
19591
|
set: function set(value) {
|
|
19592
19592
|
if (this._width !== value) {
|
|
19593
19593
|
this._width = value;
|
|
19594
|
+
this._onWidthChanged(value);
|
|
19594
19595
|
this._sizeUpdateFlagManager.dispatch();
|
|
19595
|
-
this._onSizeChanged(value, this._width);
|
|
19596
19596
|
}
|
|
19597
19597
|
}
|
|
19598
19598
|
},
|
|
@@ -19606,8 +19606,8 @@ ShaderPool.init();
|
|
|
19606
19606
|
set: function set(value) {
|
|
19607
19607
|
if (this._height !== value) {
|
|
19608
19608
|
this._height = value;
|
|
19609
|
+
this._onHeightChange(value);
|
|
19609
19610
|
this._sizeUpdateFlagManager.dispatch();
|
|
19610
|
-
this._onSizeChanged(this._width, value);
|
|
19611
19611
|
}
|
|
19612
19612
|
}
|
|
19613
19613
|
}
|
|
@@ -29961,7 +29961,8 @@ __decorate([
|
|
|
29961
29961
|
var transform = this._renderer.entity.transform;
|
|
29962
29962
|
var shape = this.emission.shape;
|
|
29963
29963
|
for(var i = 0; i < count; i++){
|
|
29964
|
-
|
|
29964
|
+
var _shape;
|
|
29965
|
+
if ((_shape = shape) == null ? void 0 : _shape.enabled) {
|
|
29965
29966
|
shape._generatePositionAndDirection(this.emission._shapeRand, time, position, direction);
|
|
29966
29967
|
var positionScale = this.main._getPositionScale();
|
|
29967
29968
|
position.multiply(positionScale);
|
|
@@ -30541,7 +30542,7 @@ __decorate([
|
|
|
30541
30542
|
* Base class for all particle shapes.
|
|
30542
30543
|
*/ var BaseShape = /*#__PURE__*/ function() {
|
|
30543
30544
|
function BaseShape() {
|
|
30544
|
-
/** Specifies whether the ShapeModule is enabled or disabled. */ this.
|
|
30545
|
+
/** Specifies whether the ShapeModule is enabled or disabled. */ this.enabled = true;
|
|
30545
30546
|
/** Randomizes the starting direction of particles. */ this.randomDirectionAmount = 0;
|
|
30546
30547
|
}
|
|
30547
30548
|
var _proto = BaseShape.prototype;
|