@galacean/effects-threejs 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 threejs plugin 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';
@@ -24530,9 +24530,9 @@ var tmpScale = new Vector3(1, 1, 1);
24530
24530
  var mat = this.getViewProjectionMatrix();
24531
24531
  var inverseMat = this.getInverseViewProjectionMatrix();
24532
24532
  if (!this.viewportMatrix.isIdentity()) {
24533
- var invertedViewportMatrix = this.viewportMatrix.clone();
24534
- mat.multiply(invertedViewportMatrix);
24535
- inverseMat = invertedViewportMatrix.invert().multiply(inverseMat);
24533
+ var viewportMatrix = this.viewportMatrix.clone();
24534
+ inverseMat.premultiply(viewportMatrix);
24535
+ mat.multiply(viewportMatrix.invert());
24536
24536
  }
24537
24537
  var _mat_projectPoint = mat.projectPoint(pos), nz = _mat_projectPoint.z;
24538
24538
  var _inverseMat_projectPoint = inverseMat.projectPoint(new Vector3(1, 1, nz)), xMax = _inverseMat_projectPoint.x, yMax = _inverseMat_projectPoint.y;
@@ -27708,7 +27708,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
27708
27708
  registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
27709
27709
  registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
27710
27710
  registerPlugin("interact", InteractLoader, exports.VFXItem, true);
27711
- var version$1 = "2.0.0-beta.1";
27711
+ var version$1 = "2.0.0";
27712
27712
  logger.info("Core version: " + version$1 + ".");
27713
27713
 
27714
27714
  var _obj;
@@ -29389,7 +29389,7 @@ setMaxSpriteMeshItemCount(8);
29389
29389
  */ Mesh.create = function(engine, props) {
29390
29390
  return new ThreeMesh(engine, props);
29391
29391
  };
29392
- var version = "2.0.0-beta.1";
29392
+ var version = "2.0.0";
29393
29393
  logger.info("THREEJS plugin version: " + version + ".");
29394
29394
 
29395
29395
  exports.AbstractPlugin = AbstractPlugin;