@galacean/effects-core 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 +27 -26
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -26
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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.1.3
|
|
6
|
+
* Version: v2.1.3
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -22194,7 +22194,7 @@ var ParticleMesh = /*#__PURE__*/ function() {
|
|
|
22194
22194
|
var rotation = aRot;
|
|
22195
22195
|
if (!this.rotationOverLifetime) {
|
|
22196
22196
|
aRotationMatrix.setZero();
|
|
22197
|
-
} else
|
|
22197
|
+
} else {
|
|
22198
22198
|
// Adjust rotation based on the specified lifetime components
|
|
22199
22199
|
if (this.rotationOverLifetime.x) {
|
|
22200
22200
|
if (_instanceof1(this.rotationOverLifetime.x, RandomValue)) {
|
|
@@ -22217,30 +22217,31 @@ var ParticleMesh = /*#__PURE__*/ function() {
|
|
|
22217
22217
|
rotation.z += this.rotationOverLifetime.z.getValue(life);
|
|
22218
22218
|
}
|
|
22219
22219
|
}
|
|
22220
|
-
} else {
|
|
22221
|
-
// Adjust rotation based on the specified lifetime components
|
|
22222
|
-
if (this.rotationOverLifetime.x) {
|
|
22223
|
-
if (_instanceof1(this.rotationOverLifetime.x, RandomValue)) {
|
|
22224
|
-
rotation.x += this.rotationOverLifetime.x.getIntegrateValue(0.0, life, aSeed) * duration;
|
|
22225
|
-
} else {
|
|
22226
|
-
rotation.x += this.rotationOverLifetime.x.getIntegrateValue(0.0, life, duration) * duration;
|
|
22227
|
-
}
|
|
22228
|
-
}
|
|
22229
|
-
if (this.rotationOverLifetime.y) {
|
|
22230
|
-
if (_instanceof1(this.rotationOverLifetime.y, RandomValue)) {
|
|
22231
|
-
rotation.y += this.rotationOverLifetime.y.getIntegrateValue(0.0, life, aSeed) * duration;
|
|
22232
|
-
} else {
|
|
22233
|
-
rotation.y += this.rotationOverLifetime.y.getIntegrateValue(0.0, life, duration) * duration;
|
|
22234
|
-
}
|
|
22235
|
-
}
|
|
22236
|
-
if (this.rotationOverLifetime.z) {
|
|
22237
|
-
if (_instanceof1(this.rotationOverLifetime.z, RandomValue)) {
|
|
22238
|
-
rotation.z += this.rotationOverLifetime.z.getIntegrateValue(0.0, life, aSeed) * duration;
|
|
22239
|
-
} else {
|
|
22240
|
-
rotation.z += this.rotationOverLifetime.z.getIntegrateValue(0.0, life, duration) * duration;
|
|
22241
|
-
}
|
|
22242
|
-
}
|
|
22243
22220
|
}
|
|
22221
|
+
// else {
|
|
22222
|
+
// // Adjust rotation based on the specified lifetime components
|
|
22223
|
+
// if (this.rotationOverLifetime.x) {
|
|
22224
|
+
// if (this.rotationOverLifetime.x instanceof RandomValue) {
|
|
22225
|
+
// rotation.x += this.rotationOverLifetime.x.getIntegrateValue(0.0, life, aSeed) * duration;
|
|
22226
|
+
// } else {
|
|
22227
|
+
// rotation.x += this.rotationOverLifetime.x.getIntegrateValue(0.0, life, duration) * duration;
|
|
22228
|
+
// }
|
|
22229
|
+
// }
|
|
22230
|
+
// if (this.rotationOverLifetime.y) {
|
|
22231
|
+
// if (this.rotationOverLifetime.y instanceof RandomValue) {
|
|
22232
|
+
// rotation.y += this.rotationOverLifetime.y.getIntegrateValue(0.0, life, aSeed) * duration;
|
|
22233
|
+
// } else {
|
|
22234
|
+
// rotation.y += this.rotationOverLifetime.y.getIntegrateValue(0.0, life, duration) * duration;
|
|
22235
|
+
// }
|
|
22236
|
+
// }
|
|
22237
|
+
// if (this.rotationOverLifetime.z) {
|
|
22238
|
+
// if (this.rotationOverLifetime.z instanceof RandomValue) {
|
|
22239
|
+
// rotation.z += this.rotationOverLifetime.z.getIntegrateValue(0.0, life, aSeed) * duration;
|
|
22240
|
+
// } else {
|
|
22241
|
+
// rotation.z += this.rotationOverLifetime.z.getIntegrateValue(0.0, life, duration) * duration;
|
|
22242
|
+
// }
|
|
22243
|
+
// }
|
|
22244
|
+
// }
|
|
22244
22245
|
// If the rotation vector is zero, return the identity matrix
|
|
22245
22246
|
if (rotation.dot(rotation) === 0.0) {
|
|
22246
22247
|
aRotationMatrix.identity();
|
|
@@ -31379,7 +31380,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
|
|
|
31379
31380
|
registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
|
|
31380
31381
|
registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
|
|
31381
31382
|
registerPlugin("interact", InteractLoader, exports.VFXItem, true);
|
|
31382
|
-
var version = "2.1.3
|
|
31383
|
+
var version = "2.1.3";
|
|
31383
31384
|
logger.info("Core version: " + version + ".");
|
|
31384
31385
|
|
|
31385
31386
|
exports.AbstractPlugin = AbstractPlugin;
|