@galacean/effects-core 2.0.0-beta.1 → 2.0.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.0.0-beta.1
6
+ * Version: v2.0.0
7
7
  */
8
8
 
9
9
  'use strict';
@@ -24508,9 +24508,9 @@ var tmpScale = new Vector3(1, 1, 1);
24508
24508
  var mat = this.getViewProjectionMatrix();
24509
24509
  var inverseMat = this.getInverseViewProjectionMatrix();
24510
24510
  if (!this.viewportMatrix.isIdentity()) {
24511
- var invertedViewportMatrix = this.viewportMatrix.clone();
24512
- mat.multiply(invertedViewportMatrix);
24513
- inverseMat = invertedViewportMatrix.invert().multiply(inverseMat);
24511
+ var viewportMatrix = this.viewportMatrix.clone();
24512
+ inverseMat.premultiply(viewportMatrix);
24513
+ mat.multiply(viewportMatrix.invert());
24514
24514
  }
24515
24515
  var _mat_projectPoint = mat.projectPoint(pos), nz = _mat_projectPoint.z;
24516
24516
  var _inverseMat_projectPoint = inverseMat.projectPoint(new Vector3(1, 1, nz)), xMax = _inverseMat_projectPoint.x, yMax = _inverseMat_projectPoint.y;
@@ -27686,7 +27686,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
27686
27686
  registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
27687
27687
  registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
27688
27688
  registerPlugin("interact", InteractLoader, exports.VFXItem, true);
27689
- var version = "2.0.0-beta.1";
27689
+ var version = "2.0.0";
27690
27690
  logger.info("Core version: " + version + ".");
27691
27691
 
27692
27692
  exports.AbstractPlugin = AbstractPlugin;