@galacean/effects-core 2.0.0-alpha.32 → 2.0.0-alpha.34
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/canvas-pool.d.ts +0 -1
- package/dist/comp-vfx-item.d.ts +0 -4
- package/dist/components/effect-component.d.ts +2 -22
- package/dist/composition.d.ts +1 -10
- package/dist/index.js +329 -296
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +329 -290
- package/dist/index.mjs.map +1 -1
- package/dist/material/material.d.ts +1 -5
- package/dist/material/utils.d.ts +0 -10
- package/dist/math/utils.d.ts +0 -3
- package/dist/plugins/particle/burst.d.ts +10 -3
- package/dist/plugins/particle/link.d.ts +1 -0
- package/dist/plugins/particle/particle-loader.d.ts +1 -1
- package/dist/plugins/particle/particle-mesh.d.ts +0 -5
- package/dist/plugins/particle/particle-system.d.ts +9 -3
- package/dist/plugins/particle/particle-vfx-item.d.ts +1 -0
- package/dist/render/create-copy-shader.d.ts +2 -2
- package/dist/render/mesh.d.ts +1 -1
- package/dist/shader/index.d.ts +1 -2
- package/dist/shader/shader-factory.d.ts +35 -0
- package/package.json +1 -1
package/dist/canvas-pool.d.ts
CHANGED
package/dist/comp-vfx-item.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Matrix4 } from '@galacean/effects-math/es/core/matrix4';
|
|
2
|
-
import type { TriangleLike } from '@galacean/effects-math/es/core/type';
|
|
3
2
|
import type { Engine } from '../engine';
|
|
4
3
|
import type { Material, MaterialDestroyOptions } from '../material';
|
|
5
4
|
import type { BoundingBoxTriangle, HitTestTriangleParams } from '../plugins';
|
|
@@ -12,10 +11,6 @@ import { RendererComponent } from './renderer-component';
|
|
|
12
11
|
* @internal
|
|
13
12
|
*/
|
|
14
13
|
export declare class EffectComponent extends RendererComponent {
|
|
15
|
-
/**
|
|
16
|
-
* Mesh 的全局唯一 id
|
|
17
|
-
*/
|
|
18
|
-
readonly id: string;
|
|
19
14
|
/**
|
|
20
15
|
* Mesh 的世界矩阵
|
|
21
16
|
*/
|
|
@@ -24,27 +19,12 @@ export declare class EffectComponent extends RendererComponent {
|
|
|
24
19
|
* Mesh 的 Geometry
|
|
25
20
|
*/
|
|
26
21
|
geometry: Geometry;
|
|
27
|
-
triangles
|
|
28
|
-
|
|
29
|
-
private visible;
|
|
22
|
+
private triangles;
|
|
23
|
+
private destroyed;
|
|
30
24
|
private hitTestGeometry;
|
|
31
25
|
constructor(engine: Engine);
|
|
32
|
-
get isDestroyed(): boolean;
|
|
33
|
-
/**
|
|
34
|
-
* 设置当前 Mesh 的可见性。
|
|
35
|
-
* @param visible - true:可见,false:不可见
|
|
36
|
-
*/
|
|
37
|
-
setVisible(visible: boolean): void;
|
|
38
26
|
start(): void;
|
|
39
27
|
render(renderer: Renderer): void;
|
|
40
|
-
/**
|
|
41
|
-
* 获取当前 Mesh 的可见性。
|
|
42
|
-
*/
|
|
43
|
-
getVisible(): boolean;
|
|
44
|
-
/**
|
|
45
|
-
* 获取当前 Mesh 的第一个 geometry。
|
|
46
|
-
*/
|
|
47
|
-
firstGeometry(): Geometry;
|
|
48
28
|
/**
|
|
49
29
|
* 设置当前 Mesh 的材质
|
|
50
30
|
* @param material - 要设置的材质
|
package/dist/composition.d.ts
CHANGED
|
@@ -287,16 +287,6 @@ export declare class Composition extends EventEmitter<CompositionEvent<Compositi
|
|
|
287
287
|
protected reset(): void;
|
|
288
288
|
prepareRender(): void;
|
|
289
289
|
protected gatherRendererComponent(vfxItem: VFXItem, renderFrame: RenderFrame): void;
|
|
290
|
-
/**
|
|
291
|
-
* 是否合成需要重新播放
|
|
292
|
-
* @returns 重新播放合成标志位
|
|
293
|
-
*/
|
|
294
|
-
private shouldRestart;
|
|
295
|
-
/**
|
|
296
|
-
* 是否合成需要销毁
|
|
297
|
-
* @returns 销毁合成标志位
|
|
298
|
-
*/
|
|
299
|
-
private shouldDispose;
|
|
300
290
|
/**
|
|
301
291
|
* 合成更新,针对所有 item 的更新
|
|
302
292
|
* @param deltaTime - 更新的时间步长
|
|
@@ -304,6 +294,7 @@ export declare class Composition extends EventEmitter<CompositionEvent<Compositi
|
|
|
304
294
|
*/
|
|
305
295
|
update(deltaTime: number): void;
|
|
306
296
|
private toLocalTime;
|
|
297
|
+
private shouldDispose;
|
|
307
298
|
private getUpdateTime;
|
|
308
299
|
private callStart;
|
|
309
300
|
private callUpdate;
|