@galacean/effects-core 2.4.4 → 2.4.6

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/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * Description: Galacean Effects runtime core for the web
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
6
- * Version: v2.4.4
6
+ * Version: v2.4.6
7
7
  */
8
8
 
9
9
  'use strict';
@@ -18978,6 +18978,25 @@ exports.ParticleSystem = /*#__PURE__*/ function(Component) {
18978
18978
  updateTrail();
18979
18979
  }
18980
18980
  };
18981
+ _proto.drawStencilMask = function drawStencilMask(renderer) {
18982
+ if (!this.isActiveAndEnabled) {
18983
+ return;
18984
+ }
18985
+ var previousColorMasks = [];
18986
+ for(var i = 0; i < this.renderer.meshes.length; i++){
18987
+ var material = this.renderer.meshes[i].material;
18988
+ previousColorMasks.push(material.colorMask);
18989
+ material.colorMask = false;
18990
+ }
18991
+ for(var _iterator = _create_for_of_iterator_helper_loose(this.renderer.meshes), _step; !(_step = _iterator()).done;){
18992
+ var mesh = _step.value;
18993
+ mesh.render(renderer);
18994
+ }
18995
+ for(var i1 = 0; i1 < this.renderer.meshes.length; i1++){
18996
+ var material1 = this.renderer.meshes[i1].material;
18997
+ material1.colorMask = previousColorMasks[i1];
18998
+ }
18999
+ };
18981
19000
  _proto.onDestroy = function onDestroy() {
18982
19001
  if (this.item && this.item.composition) {
18983
19002
  this.meshes.forEach(function(mesh) {
@@ -19058,8 +19077,6 @@ exports.ParticleSystem = /*#__PURE__*/ function(Component) {
19058
19077
  finish = true;
19059
19078
  }
19060
19079
  }
19061
- } else {
19062
- break;
19063
19080
  }
19064
19081
  // @ts-expect-error
19065
19082
  }while ((node = node.pre) && !finish);
@@ -31643,7 +31660,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem);
31643
31660
  registerPlugin("particle", ParticleLoader, exports.VFXItem);
31644
31661
  registerPlugin("cal", CalculateLoader, exports.VFXItem);
31645
31662
  registerPlugin("interact", InteractLoader, exports.VFXItem);
31646
- var version = "2.4.4";
31663
+ var version = "2.4.6";
31647
31664
  logger.info("Core version: " + version + ".");
31648
31665
 
31649
31666
  exports.AbstractPlugin = AbstractPlugin;