@galacean/effects-core 2.3.1 → 2.3.2
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/camera.d.ts +2 -2
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/camera.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Vector3 } from '@galacean/effects-math/es/core/vector3';
|
|
2
|
-
import
|
|
2
|
+
import { Quaternion } from '@galacean/effects-math/es/core/quaternion';
|
|
3
3
|
import { Matrix4 } from '@galacean/effects-math/es/core/matrix4';
|
|
4
|
-
import
|
|
4
|
+
import { Euler } from '@galacean/effects-math/es/core/euler';
|
|
5
5
|
import * as spec from '@galacean/effects-specification';
|
|
6
6
|
import { Transform } from './transform';
|
|
7
7
|
interface CameraOptionsBase {
|
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.3.
|
|
6
|
+
* Version: v2.3.2
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -17933,6 +17933,7 @@ var seed$3 = 1;
|
|
|
17933
17933
|
this.rotation.y = y;
|
|
17934
17934
|
this.rotation.z = z;
|
|
17935
17935
|
this.quat.setFromEuler(this.rotation);
|
|
17936
|
+
// TODO 修正 GE 四元数旋转共轭问题
|
|
17936
17937
|
this.quat.conjugate();
|
|
17937
17938
|
this.dirtyFlags.localData = true;
|
|
17938
17939
|
this.dispatchValueChange();
|
|
@@ -28834,6 +28835,8 @@ var tmpScale = new Vector3(1, 1, 1);
|
|
|
28834
28835
|
0,
|
|
28835
28836
|
0
|
|
28836
28837
|
] : _options_rotation;
|
|
28838
|
+
var euler = new Euler(rotation[0], rotation[1], rotation[2]);
|
|
28839
|
+
var quat = new Quaternion().setFromEuler(euler);
|
|
28837
28840
|
this.options = {
|
|
28838
28841
|
near: near,
|
|
28839
28842
|
far: far,
|
|
@@ -28842,7 +28845,7 @@ var tmpScale = new Vector3(1, 1, 1);
|
|
|
28842
28845
|
clipMode: clipMode
|
|
28843
28846
|
};
|
|
28844
28847
|
this.transform.setPosition(position[0], position[1], position[2]);
|
|
28845
|
-
this.transform.
|
|
28848
|
+
this.transform.setQuaternion(quat.x, quat.y, quat.z, quat.w);
|
|
28846
28849
|
this.dirty = true;
|
|
28847
28850
|
this.updateMatrix();
|
|
28848
28851
|
}
|
|
@@ -32096,7 +32099,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem);
|
|
|
32096
32099
|
registerPlugin("particle", ParticleLoader, exports.VFXItem);
|
|
32097
32100
|
registerPlugin("cal", CalculateLoader, exports.VFXItem);
|
|
32098
32101
|
registerPlugin("interact", InteractLoader, exports.VFXItem);
|
|
32099
|
-
var version = "2.3.
|
|
32102
|
+
var version = "2.3.2";
|
|
32100
32103
|
logger.info("Core version: " + version + ".");
|
|
32101
32104
|
|
|
32102
32105
|
exports.AbstractPlugin = AbstractPlugin;
|