@galacean/effects-threejs 2.1.3-alpha.4 → 2.1.3
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 +28 -27
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +28 -27
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
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.1.3
|
|
6
|
+
* Version: v2.1.3
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -22216,7 +22216,7 @@ var ParticleMesh = /*#__PURE__*/ function() {
|
|
|
22216
22216
|
var rotation = aRot;
|
|
22217
22217
|
if (!this.rotationOverLifetime) {
|
|
22218
22218
|
aRotationMatrix.setZero();
|
|
22219
|
-
} else
|
|
22219
|
+
} else {
|
|
22220
22220
|
// Adjust rotation based on the specified lifetime components
|
|
22221
22221
|
if (this.rotationOverLifetime.x) {
|
|
22222
22222
|
if (_instanceof1(this.rotationOverLifetime.x, RandomValue)) {
|
|
@@ -22239,30 +22239,31 @@ var ParticleMesh = /*#__PURE__*/ function() {
|
|
|
22239
22239
|
rotation.z += this.rotationOverLifetime.z.getValue(life);
|
|
22240
22240
|
}
|
|
22241
22241
|
}
|
|
22242
|
-
} else {
|
|
22243
|
-
// Adjust rotation based on the specified lifetime components
|
|
22244
|
-
if (this.rotationOverLifetime.x) {
|
|
22245
|
-
if (_instanceof1(this.rotationOverLifetime.x, RandomValue)) {
|
|
22246
|
-
rotation.x += this.rotationOverLifetime.x.getIntegrateValue(0.0, life, aSeed) * duration;
|
|
22247
|
-
} else {
|
|
22248
|
-
rotation.x += this.rotationOverLifetime.x.getIntegrateValue(0.0, life, duration) * duration;
|
|
22249
|
-
}
|
|
22250
|
-
}
|
|
22251
|
-
if (this.rotationOverLifetime.y) {
|
|
22252
|
-
if (_instanceof1(this.rotationOverLifetime.y, RandomValue)) {
|
|
22253
|
-
rotation.y += this.rotationOverLifetime.y.getIntegrateValue(0.0, life, aSeed) * duration;
|
|
22254
|
-
} else {
|
|
22255
|
-
rotation.y += this.rotationOverLifetime.y.getIntegrateValue(0.0, life, duration) * duration;
|
|
22256
|
-
}
|
|
22257
|
-
}
|
|
22258
|
-
if (this.rotationOverLifetime.z) {
|
|
22259
|
-
if (_instanceof1(this.rotationOverLifetime.z, RandomValue)) {
|
|
22260
|
-
rotation.z += this.rotationOverLifetime.z.getIntegrateValue(0.0, life, aSeed) * duration;
|
|
22261
|
-
} else {
|
|
22262
|
-
rotation.z += this.rotationOverLifetime.z.getIntegrateValue(0.0, life, duration) * duration;
|
|
22263
|
-
}
|
|
22264
|
-
}
|
|
22265
22242
|
}
|
|
22243
|
+
// else {
|
|
22244
|
+
// // Adjust rotation based on the specified lifetime components
|
|
22245
|
+
// if (this.rotationOverLifetime.x) {
|
|
22246
|
+
// if (this.rotationOverLifetime.x instanceof RandomValue) {
|
|
22247
|
+
// rotation.x += this.rotationOverLifetime.x.getIntegrateValue(0.0, life, aSeed) * duration;
|
|
22248
|
+
// } else {
|
|
22249
|
+
// rotation.x += this.rotationOverLifetime.x.getIntegrateValue(0.0, life, duration) * duration;
|
|
22250
|
+
// }
|
|
22251
|
+
// }
|
|
22252
|
+
// if (this.rotationOverLifetime.y) {
|
|
22253
|
+
// if (this.rotationOverLifetime.y instanceof RandomValue) {
|
|
22254
|
+
// rotation.y += this.rotationOverLifetime.y.getIntegrateValue(0.0, life, aSeed) * duration;
|
|
22255
|
+
// } else {
|
|
22256
|
+
// rotation.y += this.rotationOverLifetime.y.getIntegrateValue(0.0, life, duration) * duration;
|
|
22257
|
+
// }
|
|
22258
|
+
// }
|
|
22259
|
+
// if (this.rotationOverLifetime.z) {
|
|
22260
|
+
// if (this.rotationOverLifetime.z instanceof RandomValue) {
|
|
22261
|
+
// rotation.z += this.rotationOverLifetime.z.getIntegrateValue(0.0, life, aSeed) * duration;
|
|
22262
|
+
// } else {
|
|
22263
|
+
// rotation.z += this.rotationOverLifetime.z.getIntegrateValue(0.0, life, duration) * duration;
|
|
22264
|
+
// }
|
|
22265
|
+
// }
|
|
22266
|
+
// }
|
|
22266
22267
|
// If the rotation vector is zero, return the identity matrix
|
|
22267
22268
|
if (rotation.dot(rotation) === 0.0) {
|
|
22268
22269
|
aRotationMatrix.identity();
|
|
@@ -31401,7 +31402,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
|
|
|
31401
31402
|
registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
|
|
31402
31403
|
registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
|
|
31403
31404
|
registerPlugin("interact", InteractLoader, exports.VFXItem, true);
|
|
31404
|
-
var version$1 = "2.1.3
|
|
31405
|
+
var version$1 = "2.1.3";
|
|
31405
31406
|
logger.info("Core version: " + version$1 + ".");
|
|
31406
31407
|
|
|
31407
31408
|
var _obj;
|
|
@@ -33028,7 +33029,7 @@ setMaxSpriteMeshItemCount(8);
|
|
|
33028
33029
|
*/ Mesh.create = function(engine, props) {
|
|
33029
33030
|
return new ThreeMesh(engine, props);
|
|
33030
33031
|
};
|
|
33031
|
-
var version = "2.1.3
|
|
33032
|
+
var version = "2.1.3";
|
|
33032
33033
|
logger.info("THREEJS plugin version: " + version + ".");
|
|
33033
33034
|
|
|
33034
33035
|
exports.AbstractPlugin = AbstractPlugin;
|