@galacean/effects-specification 2.1.0-alpha.2 → 2.1.0-alpha.3
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.
|
@@ -1,12 +1,37 @@
|
|
|
1
1
|
export interface PostProcessVolumeData {
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* 泛光
|
|
4
|
+
*/
|
|
5
|
+
bloom?: Bloom;
|
|
6
|
+
/**
|
|
7
|
+
* 颜色调整
|
|
8
|
+
*/
|
|
9
|
+
colorAdjustments?: ColorAdjustments;
|
|
10
|
+
/**
|
|
11
|
+
* 晕影
|
|
12
|
+
*/
|
|
13
|
+
vignette?: Vignette;
|
|
14
|
+
/**
|
|
15
|
+
* 色调映射
|
|
16
|
+
*/
|
|
17
|
+
tonemapping?: Tonemapping;
|
|
18
|
+
}
|
|
19
|
+
export interface PostProcessEffectSettings {
|
|
20
|
+
active: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface Bloom extends PostProcessEffectSettings {
|
|
3
23
|
threshold: number;
|
|
4
|
-
|
|
24
|
+
intensity: number;
|
|
25
|
+
}
|
|
26
|
+
export interface Tonemapping extends PostProcessEffectSettings {
|
|
27
|
+
}
|
|
28
|
+
export interface ColorAdjustments extends PostProcessEffectSettings {
|
|
5
29
|
brightness: number;
|
|
6
30
|
saturation: number;
|
|
7
31
|
contrast: number;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
32
|
+
}
|
|
33
|
+
export interface Vignette extends PostProcessEffectSettings {
|
|
34
|
+
intensity: number;
|
|
35
|
+
smoothness: number;
|
|
36
|
+
roundness: number;
|
|
12
37
|
}
|
package/es/item/spine-item.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BinaryPointer } from '../binary';
|
|
2
2
|
import type { ComponentData, DataPath } from '../components';
|
|
3
3
|
import type { DataType } from '../data-type';
|
|
4
|
-
import type { SizeOverLifetime, RotationOverLifetime, PositionOverLifetime, ColorOverLifetime, RendererOptions, ItemType } from '../type';
|
|
4
|
+
import type { SizeOverLifetime, RotationOverLifetime, PositionOverLifetime, ColorOverLifetime, RendererOptions, ItemType, MaskMode, RenderMode } from '../type';
|
|
5
5
|
import type { BaseItem, EndBehavior } from './base-item';
|
|
6
6
|
/**
|
|
7
7
|
* 插件元素
|
|
@@ -119,4 +119,8 @@ export interface SpineComponent extends ComponentData {
|
|
|
119
119
|
images: DataPath[];
|
|
120
120
|
skeletonType: skeletonFileType;
|
|
121
121
|
};
|
|
122
|
+
renderer?: {
|
|
123
|
+
renderMode: RenderMode;
|
|
124
|
+
maskMode: MaskMode;
|
|
125
|
+
};
|
|
122
126
|
}
|