@galacean/effects-specification 2.1.0-alpha.0 → 2.1.0-alpha.1

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.
@@ -20,10 +20,15 @@ export declare enum DataType {
20
20
  SpriteColorTrack = "SpriteColorTrack",
21
21
  ActivationTrack = "ActivationTrack",
22
22
  SubCompositionTrack = "SubCompositionTrack",
23
+ FloatPropertyTrack = "FloatPropertyTrack",
24
+ ColorPropertyTrack = "ColorPropertyTrack",
25
+ Vector4PropertyTrack = "Vector4PropertyTrack",
23
26
  TransformPlayableAsset = "TransformPlayableAsset",
24
27
  SpriteColorPlayableAsset = "SpriteColorPlayableAsset",
25
28
  ActivationPlayableAsset = "ActivationPlayableAsset",
26
29
  SubCompositionPlayableAsset = "SubCompositionPlayableAsset",
30
+ FloatPropertyPlayableAsset = "FloatPropertyPlayableAsset",
31
+ ColorPropertyPlayableAsset = "ColorPropertyPlayableAsset",
27
32
  MeshComponent = "MeshComponent",
28
33
  SkyboxComponent = "SkyboxComponent",
29
34
  LightComponent = "LightComponent",
package/es/components.js CHANGED
@@ -21,10 +21,15 @@ export var DataType;
21
21
  DataType["SpriteColorTrack"] = "SpriteColorTrack";
22
22
  DataType["ActivationTrack"] = "ActivationTrack";
23
23
  DataType["SubCompositionTrack"] = "SubCompositionTrack";
24
+ DataType["FloatPropertyTrack"] = "FloatPropertyTrack";
25
+ DataType["ColorPropertyTrack"] = "ColorPropertyTrack";
26
+ DataType["Vector4PropertyTrack"] = "Vector4PropertyTrack";
24
27
  DataType["TransformPlayableAsset"] = "TransformPlayableAsset";
25
28
  DataType["SpriteColorPlayableAsset"] = "SpriteColorPlayableAsset";
26
29
  DataType["ActivationPlayableAsset"] = "ActivationPlayableAsset";
27
30
  DataType["SubCompositionPlayableAsset"] = "SubCompositionPlayableAsset";
31
+ DataType["FloatPropertyPlayableAsset"] = "FloatPropertyPlayableAsset";
32
+ DataType["ColorPropertyPlayableAsset"] = "ColorPropertyPlayableAsset";
28
33
  // FIXME: 先完成ECS的场景转换,后面移到spec中
29
34
  DataType["MeshComponent"] = "MeshComponent";
30
35
  DataType["SkyboxComponent"] = "SkyboxComponent";
@@ -74,10 +74,6 @@ interface CompositionBase {
74
74
  * @default [0,0]
75
75
  */
76
76
  previewSize?: [width: number, height: number];
77
- /**
78
- * 降级图
79
- */
80
- fallbackImage?: string;
81
77
  }
82
78
  /**
83
79
  * 合成信息
@@ -0,0 +1,7 @@
1
+ import type { BezierValue } from '../number-expression';
2
+ export interface ColorCurveData {
3
+ r: BezierValue;
4
+ g: BezierValue;
5
+ b: BezierValue;
6
+ a: BezierValue;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './color-curve-data';
2
+ export * from './vector4-curve-data';
@@ -0,0 +1,2 @@
1
+ export * from './color-curve-data';
2
+ export * from './vector4-curve-data';
@@ -0,0 +1,7 @@
1
+ import type { BezierValue } from '../number-expression';
2
+ export interface Vector4CurveData {
3
+ x: BezierValue;
4
+ y: BezierValue;
5
+ z: BezierValue;
6
+ w: BezierValue;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
package/es/index.d.ts CHANGED
@@ -29,3 +29,5 @@ export * from './vfx-item-data';
29
29
  export * from './buitin-object-guid';
30
30
  export * from './timeline';
31
31
  export * from './assets';
32
+ export * from './render-settings';
33
+ export * from './curve-data';
package/es/index.js CHANGED
@@ -29,3 +29,5 @@ export * from './vfx-item-data';
29
29
  export * from './buitin-object-guid';
30
30
  export * from './timeline';
31
31
  export * from './assets';
32
+ export * from './render-settings';
33
+ export * from './curve-data';
@@ -72,7 +72,15 @@ export declare enum ValueType {
72
72
  /**
73
73
  * 贝塞尔曲线四元数
74
74
  */
75
- BEZIER_CURVE_QUAT = 23
75
+ BEZIER_CURVE_QUAT = 23,
76
+ /**
77
+ * 颜色曲线
78
+ */
79
+ COLOR_CURVE = 24,
80
+ /**
81
+ * Vector4 曲线
82
+ */
83
+ VECTOR4_CURVE = 25
76
84
  }
77
85
  export type vec2 = [x: number, y: number];
78
86
  export type vec3 = [x: number, y: number, z: number];
@@ -75,6 +75,14 @@ export var ValueType;
75
75
  * 贝塞尔曲线四元数
76
76
  */
77
77
  ValueType[ValueType["BEZIER_CURVE_QUAT"] = 23] = "BEZIER_CURVE_QUAT";
78
+ /**
79
+ * 颜色曲线
80
+ */
81
+ ValueType[ValueType["COLOR_CURVE"] = 24] = "COLOR_CURVE";
82
+ /**
83
+ * Vector4 曲线
84
+ */
85
+ ValueType[ValueType["VECTOR4_CURVE"] = 25] = "VECTOR4_CURVE";
78
86
  })(ValueType || (ValueType = {}));
79
87
  /**
80
88
  * 关键帧类型
@@ -0,0 +1,4 @@
1
+ export interface RenderSettings {
2
+ postProcessingEnabled: boolean;
3
+ supportsHDR: boolean;
4
+ }
@@ -0,0 +1 @@
1
+ export {};
package/es/scene.d.ts CHANGED
@@ -8,6 +8,7 @@ import type { ComponentData, EffectsObjectData, GeometryData, MaterialData, Shad
8
8
  import type { VFXItemData } from './vfx-item-data';
9
9
  import type { AnimationClipData } from './animation-clip-data';
10
10
  import type { AssetBase, ImageSource } from './assets';
11
+ import type { RenderSettings } from './render-settings';
11
12
  /**
12
13
  * runtime 2.0 之前的场景信息
13
14
  * 素材信息存放于统一数据结构中
@@ -129,6 +130,10 @@ export interface JSONScene {
129
130
  * 渲染所需合成列表
130
131
  */
131
132
  compositions: CompositionData[];
133
+ /**
134
+ * 渲染配置
135
+ */
136
+ renderSettings?: RenderSettings;
132
137
  /******************************** 以下皆为可复用信息,加载在对应 Manager 中 *******************************/
133
138
  /**
134
139
  * 贴图信息
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-specification",
3
- "version": "2.1.0-alpha.0",
3
+ "version": "2.1.0-alpha.1",
4
4
  "description": "Galacean Effects JSON Specification",
5
5
  "module": "./es/index.js",
6
6
  "main": "./es/index.js",