@galacean/effects-core 2.4.0-beta.2 → 2.4.0

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.0-beta.2
6
+ * Version: v2.4.0
7
7
  */
8
8
 
9
9
  'use strict';
@@ -6108,8 +6108,7 @@ function setSideMode(material, side) {
6108
6108
  material.cullFace = side === SideMode.BACK ? glContext.BACK : glContext.FRONT;
6109
6109
  }
6110
6110
  }
6111
- function setMaskMode(material, maskMode, colorMask) {
6112
- if (colorMask === void 0) colorMask = false;
6111
+ function setMaskMode(material, maskMode) {
6113
6112
  switch(maskMode){
6114
6113
  case undefined:
6115
6114
  material.stencilTest = false;
@@ -6124,8 +6123,6 @@ function setMaskMode(material, maskMode, colorMask) {
6124
6123
  glContext.REPLACE,
6125
6124
  glContext.REPLACE
6126
6125
  ];
6127
- // 关闭/开启蒙版元素的颜色写入
6128
- material.colorMask = colorMask;
6129
6126
  break;
6130
6127
  case exports.MaskMode.OBSCURED:
6131
6128
  material.stencilTest = true;
@@ -12697,7 +12694,7 @@ function getBezier2DValue(out, t, p0, p1, cpx0, cpy0, cpx1, cpy1) {
12697
12694
  ] : undefined;
12698
12695
  setBlendMode(material, blendMode);
12699
12696
  // 兼容旧数据中模板需要渲染的情况
12700
- setMaskMode(material, maskMode, !!this.renderer.shape);
12697
+ setMaskMode(material, maskMode);
12701
12698
  setSideMode(material, side);
12702
12699
  material.shader.shaderData.properties = '_MainTex("_MainTex",2D) = "white" {}';
12703
12700
  material.setColor("_Color", new Color(0, 0, 0, 1));
@@ -31641,7 +31638,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem);
31641
31638
  registerPlugin("particle", ParticleLoader, exports.VFXItem);
31642
31639
  registerPlugin("cal", CalculateLoader, exports.VFXItem);
31643
31640
  registerPlugin("interact", InteractLoader, exports.VFXItem);
31644
- var version = "2.4.0-beta.2";
31641
+ var version = "2.4.0";
31645
31642
  logger.info("Core version: " + version + ".");
31646
31643
 
31647
31644
  exports.AbstractPlugin = AbstractPlugin;