@galacean/effects-plugin-model 1.2.0 → 2.0.0-alpha.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/gesture/index.d.ts +5 -4
- package/dist/gltf/loader-helper.d.ts +1 -3
- package/dist/index.d.ts +4 -0
- package/dist/index.js +8358 -6785
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.mjs +8357 -6784
- package/dist/index.mjs.map +1 -1
- package/dist/loader.mjs +10070 -4913
- package/dist/loader.mjs.map +1 -1
- package/dist/plugin/const.d.ts +3 -0
- package/dist/plugin/index.d.ts +0 -2
- package/dist/plugin/model-item.d.ts +258 -0
- package/dist/plugin/model-plugin.d.ts +91 -18
- package/dist/plugin/model-tree-item.d.ts +113 -6
- package/dist/plugin/model-tree-plugin.d.ts +9 -8
- package/dist/runtime/anim-sampler.d.ts +20 -0
- package/dist/runtime/animation.d.ts +179 -26
- package/dist/runtime/cache.d.ts +75 -0
- package/dist/runtime/camera.d.ts +130 -5
- package/dist/runtime/common.d.ts +143 -4
- package/dist/runtime/light.d.ts +95 -6
- package/dist/runtime/material.d.ts +306 -1
- package/dist/runtime/math.d.ts +2 -0
- package/dist/runtime/mesh.d.ts +242 -32
- package/dist/runtime/object.d.ts +88 -10
- package/dist/runtime/scene.d.ts +156 -27
- package/dist/runtime/shader-libs/standard-shader-source.d.ts +10 -0
- package/dist/runtime/shader-libs/standard-shader.d.ts +16 -0
- package/dist/runtime/shader.d.ts +33 -1
- package/dist/runtime/skybox.d.ts +233 -9
- package/dist/utility/debug-helper.d.ts +14 -0
- package/dist/utility/hit-test-helper.d.ts +39 -3
- package/dist/utility/plugin-helper.d.ts +665 -14
- package/dist/utility/ri-helper.d.ts +67 -0
- package/dist/utility/shader-helper.d.ts +55 -0
- package/dist/utility/ts-helper.d.ts +6 -0
- package/package.json +4 -4
- package/dist/plugin/model-tree-vfx-item.d.ts +0 -15
- package/dist/plugin/model-vfx-item.d.ts +0 -28
- package/dist/runtime/shadow.d.ts +0 -230
|
@@ -1,11 +1,47 @@
|
|
|
1
|
-
import type { Composition, Region
|
|
1
|
+
import type { Composition, Region } from '@galacean/effects';
|
|
2
2
|
import type { Ray, Matrix4 } from '../runtime/math';
|
|
3
3
|
import { Vector3 } from '../runtime/math';
|
|
4
4
|
import type { ModelItemBounding } from '../index';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/**
|
|
6
|
+
* 带旋转的射线与包围盒求交
|
|
7
|
+
* @param ray - 射线
|
|
8
|
+
* @param matrixData - 矩阵
|
|
9
|
+
* @param bounding - 包围盒
|
|
10
|
+
* @returns 交点列表或者 undefined
|
|
11
|
+
*/
|
|
12
|
+
declare function RayIntersectsBoxWithRotation(ray: Ray, matrixData: Matrix4, bounding: ModelItemBounding): Vector3[] | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* 射线与包围盒求交
|
|
15
|
+
* @param ro - 射线原点
|
|
16
|
+
* @param rd - 射线方向
|
|
17
|
+
* @param bmin - 包围盒左下点
|
|
18
|
+
* @param bmax - 包围盒右上点
|
|
19
|
+
* @returns 交点参数或者 undefined
|
|
20
|
+
*/
|
|
7
21
|
declare function RayBoxTesting(ro: Vector3, rd: Vector3, bmin: Vector3, bmax: Vector3): number | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* 射线与三角形求交
|
|
24
|
+
* @param ro - 射线原点
|
|
25
|
+
* @param rd - 射线方向
|
|
26
|
+
* @param a - 三角形点
|
|
27
|
+
* @param b - 三角形点
|
|
28
|
+
* @param c - 三角形点
|
|
29
|
+
* @param backfaceCulling - 是否剔除背面
|
|
30
|
+
* @returns 交点参数或者 undefined
|
|
31
|
+
*/
|
|
8
32
|
declare function RayTriangleTesting(ro: Vector3, rd: Vector3, a: Vector3, b: Vector3, c: Vector3, backfaceCulling: boolean): number | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* 合成点击测试,支持获取多个交点,并按照远近排序
|
|
35
|
+
* @param composition - 合成
|
|
36
|
+
* @param x - 点击 x 坐标
|
|
37
|
+
* @param y - 点击 y 坐标
|
|
38
|
+
* @returns 点击信息列表
|
|
39
|
+
*/
|
|
9
40
|
declare function CompositionHitTest(composition: Composition, x: number, y: number): Region[];
|
|
41
|
+
/**
|
|
42
|
+
* 切换 3D Mesh 元素的包围盒显示标志
|
|
43
|
+
* @param composition - 合成
|
|
44
|
+
* @param itemId - 元素 id
|
|
45
|
+
*/
|
|
10
46
|
declare function ToggleItemBounding(composition: Composition, itemId: string): void;
|
|
11
47
|
export { RayIntersectsBoxWithRotation, RayBoxTesting, RayTriangleTesting, ToggleItemBounding, CompositionHitTest };
|