@galacean/effects-core 2.0.0-alpha.27 → 2.0.0-alpha.28
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 +4 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/post-process-volume.d.ts +16 -0
- package/dist/composition-source-manager.d.ts +0 -2
- package/dist/composition.d.ts +5 -5
- package/dist/effects-package.d.ts +10 -6
- package/dist/index.js +255 -191
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +253 -191
- package/dist/index.mjs.map +1 -1
- package/dist/math/translate.d.ts +1 -1
- package/dist/plugins/interact/interact-item.d.ts +1 -0
- package/dist/render/global-volume.d.ts +4 -5
- package/dist/render/render-frame.d.ts +6 -5
- package/dist/utils/device.d.ts +3 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/vfx-item.d.ts +1 -7
- package/package.json +1 -1
- package/dist/asset-migrations.d.ts +0 -5
- package/dist/plugins/cal/animation-mixer-playable.d.ts +0 -4
- package/dist/plugins/cal/animation-playable-output.d.ts +0 -4
package/dist/camera.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Vector3 } from '@galacean/effects-math/es/core/vector3';
|
|
2
|
+
import { Quaternion } from '@galacean/effects-math/es/core/quaternion';
|
|
3
|
+
import { Matrix4 } from '@galacean/effects-math/es/core/matrix4';
|
|
4
|
+
import { Euler } from '@galacean/effects-math/es/core/euler';
|
|
2
5
|
import * as spec from '@galacean/effects-specification';
|
|
3
6
|
interface CameraOptionsBase {
|
|
4
7
|
/**
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ItemBehaviour } from './component';
|
|
2
|
+
export declare class PostProcessVolume extends ItemBehaviour {
|
|
3
|
+
useHDR: boolean;
|
|
4
|
+
useBloom: boolean;
|
|
5
|
+
threshold: number;
|
|
6
|
+
bloomIntensity: number;
|
|
7
|
+
brightness: number;
|
|
8
|
+
saturation: number;
|
|
9
|
+
contrast: number;
|
|
10
|
+
vignetteIntensity: number;
|
|
11
|
+
vignetteSmoothness: number;
|
|
12
|
+
vignetteRoundness: number;
|
|
13
|
+
useToneMapping: boolean;
|
|
14
|
+
start(): void;
|
|
15
|
+
update(dt: number): void;
|
|
16
|
+
}
|
|
@@ -2,7 +2,6 @@ import * as spec from '@galacean/effects-specification';
|
|
|
2
2
|
import type { SceneBindingData } from './comp-vfx-item';
|
|
3
3
|
import type { Engine } from './engine';
|
|
4
4
|
import type { PluginSystem } from './plugin-system';
|
|
5
|
-
import type { GlobalVolume } from './render';
|
|
6
5
|
import type { Scene, SceneRenderLevel } from './scene';
|
|
7
6
|
import type { Texture } from './texture';
|
|
8
7
|
import type { Disposable } from './utils';
|
|
@@ -15,7 +14,6 @@ export interface ContentOptions {
|
|
|
15
14
|
items: VFXItemProps[];
|
|
16
15
|
camera: spec.CameraOptions;
|
|
17
16
|
startTime: number;
|
|
18
|
-
globalVolume: GlobalVolume;
|
|
19
17
|
timelineAsset: spec.DataPath;
|
|
20
18
|
sceneBindings: SceneBindingData[];
|
|
21
19
|
}
|
package/dist/composition.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { CompositionComponent } from './comp-vfx-item';
|
|
|
6
6
|
import { CompositionSourceManager } from './composition-source-manager';
|
|
7
7
|
import type { PluginSystem } from './plugin-system';
|
|
8
8
|
import type { EventSystem, Plugin, Region } from './plugins';
|
|
9
|
-
import type { MeshRendererOptions, Renderer } from './render';
|
|
9
|
+
import type { PostProcessVolumeData, MeshRendererOptions, Renderer } from './render';
|
|
10
10
|
import { RenderFrame } from './render';
|
|
11
11
|
import type { Scene, SceneType } from './scene';
|
|
12
12
|
import type { Texture } from './texture';
|
|
@@ -172,6 +172,10 @@ export declare class Composition implements Disposable, LostHandler {
|
|
|
172
172
|
* 合成全局时间
|
|
173
173
|
*/
|
|
174
174
|
globalTime: number;
|
|
175
|
+
/**
|
|
176
|
+
* 后处理渲染配置
|
|
177
|
+
*/
|
|
178
|
+
globalVolume: PostProcessVolumeData;
|
|
175
179
|
protected rendererOptions: MeshRendererOptions | null;
|
|
176
180
|
protected assigned: boolean;
|
|
177
181
|
/**
|
|
@@ -190,10 +194,6 @@ export declare class Composition implements Disposable, LostHandler {
|
|
|
190
194
|
*/
|
|
191
195
|
private paused;
|
|
192
196
|
private lastVideoUpdateTime;
|
|
193
|
-
/**
|
|
194
|
-
* 后处理渲染配置
|
|
195
|
-
*/
|
|
196
|
-
private readonly globalVolume;
|
|
197
197
|
private readonly texInfo;
|
|
198
198
|
/**
|
|
199
199
|
* Composition 构造函数
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as spec from '@galacean/effects-specification';
|
|
2
|
+
interface FileSummary {
|
|
3
|
+
assetType: string;
|
|
4
|
+
guid: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @since 2.0.0
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
2
10
|
export declare class EffectsPackage {
|
|
3
|
-
fileSummary:
|
|
11
|
+
fileSummary: FileSummary;
|
|
4
12
|
exportObjectDatas: spec.EffectsObjectData[];
|
|
5
13
|
addData(effectsObjectData: spec.EffectsObjectData): void;
|
|
6
14
|
serializeToBinary(): Uint8Array;
|
|
@@ -8,8 +16,4 @@ export declare class EffectsPackage {
|
|
|
8
16
|
private geometryDataToBinary;
|
|
9
17
|
private binaryToGeometryData;
|
|
10
18
|
}
|
|
11
|
-
interface fileSummary {
|
|
12
|
-
assetType: string;
|
|
13
|
-
guid: string;
|
|
14
|
-
}
|
|
15
19
|
export {};
|