@galacean/effects-plugin-model 2.0.0-alpha.24 → 2.0.0-alpha.25

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.
@@ -35,9 +35,9 @@ export declare class PCamera extends PEntity {
35
35
  */
36
36
  fov: number;
37
37
  /**
38
- * fov 缩放大小
38
+ * 视图矩阵
39
39
  */
40
- fovScaleRatio: number;
40
+ viewportMatrix: math.Matrix4;
41
41
  /**
42
42
  * 纵横比
43
43
  */
@@ -139,7 +139,7 @@ export declare class PCameraManager {
139
139
  /**
140
140
  * 更新默认相机状态,并计算新的透视和相机矩阵
141
141
  * @param fov - 视角
142
- * @param fovScaleRatio - 视角缩放比例
142
+ * @param viewportMatrix - 视图矩阵
143
143
  * @param aspect - 纵横比
144
144
  * @param nearPlane - 近裁剪平面
145
145
  * @param farPlane - 远裁剪平面
@@ -147,7 +147,7 @@ export declare class PCameraManager {
147
147
  * @param rotation - 旋转
148
148
  * @param clipMode - 剪裁模式
149
149
  */
150
- updateDefaultCamera(fov: number, fovScaleRatio: number, aspect: number, nearPlane: number, farPlane: number, position: Vector3, rotation: Quaternion, clipMode: number): void;
150
+ updateDefaultCamera(fov: number, viewportMatrix: Matrix4, aspect: number, nearPlane: number, farPlane: number, position: Vector3, rotation: Quaternion, clipMode: number): void;
151
151
  /**
152
152
  * 获取相机对象列表
153
153
  * @returns
@@ -210,7 +210,7 @@ export declare class PSceneManager {
210
210
  * 更新默认相机状态,根据传入的相机参数
211
211
  * @param camera - 相机参数
212
212
  */
213
- updateDefaultCamera(camera: CameraOptionsEx, fovScaleRatio: number): void;
213
+ updateDefaultCamera(camera: CameraOptionsEx, viewportMatrix: Matrix4): void;
214
214
  /**
215
215
  * 更新插件场景,需要更新内部的相关的插件对象,特别是 Mesh 对象的骨骼动画
216
216
  * 并将需要渲染的对象添加到渲染对象集合中
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-plugin-model",
3
- "version": "2.0.0-alpha.24",
3
+ "version": "2.0.0-alpha.25",
4
4
  "description": "Galacean Effects player model plugin",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",
@@ -38,15 +38,15 @@
38
38
  "registry": "https://registry.npmjs.org"
39
39
  },
40
40
  "dependencies": {
41
- "@galacean/effects-helper": "2.0.0-alpha.24"
41
+ "@galacean/effects-helper": "2.0.0-alpha.25"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@vvfx/resource-detection": "0.6.0-alpha.11",
45
45
  "@types/hammerjs": "^2.0.45",
46
46
  "fpsmeter": "^0.3.1",
47
47
  "hammerjs": "^2.0.8",
48
- "@galacean/effects-plugin-editor-gizmo": "2.0.0-alpha.24",
49
- "@galacean/effects": "2.0.0-alpha.24"
48
+ "@galacean/effects": "2.0.0-alpha.25",
49
+ "@galacean/effects-plugin-editor-gizmo": "2.0.0-alpha.25"
50
50
  },
51
51
  "scripts": {
52
52
  "dev": "vite",