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

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.
Files changed (51) hide show
  1. package/es/animation-clip-data.d.ts +1 -1
  2. package/es/binary.d.ts +2 -1
  3. package/es/components/component-data.d.ts +7 -0
  4. package/es/components/component-data.js +1 -0
  5. package/es/components/index.d.ts +2 -0
  6. package/es/components/index.js +2 -0
  7. package/es/components/post-process-volume-data.d.ts +12 -0
  8. package/es/components/post-process-volume-data.js +1 -0
  9. package/es/data-type.d.ts +44 -0
  10. package/es/data-type.js +47 -0
  11. package/es/effects-object-data.d.ts +6 -0
  12. package/es/effects-object-data.js +1 -0
  13. package/es/effects-package-data.d.ts +9 -0
  14. package/es/effects-package-data.js +1 -0
  15. package/es/geometry-data.d.ts +114 -0
  16. package/es/{components.js → geometry-data.js} +0 -46
  17. package/es/index.d.ts +8 -0
  18. package/es/index.js +8 -0
  19. package/es/item/base-item.d.ts +3 -10
  20. package/es/item/interact-item.d.ts +1 -5
  21. package/es/item/model/light.d.ts +2 -1
  22. package/es/item/model/skybox.d.ts +4 -11
  23. package/es/item/model/tree.d.ts +12 -12
  24. package/es/item/particle-item.d.ts +1 -66
  25. package/es/item/rich-text-item.d.ts +35 -0
  26. package/es/item/rich-text-item.js +1 -0
  27. package/es/item/spine-item.d.ts +2 -1
  28. package/es/item/sprite-item.d.ts +1 -43
  29. package/es/item/text-item.d.ts +35 -64
  30. package/es/item.d.ts +2 -1
  31. package/es/material-data.d.ts +21 -0
  32. package/es/material-data.js +1 -0
  33. package/es/math/color-data.d.ts +6 -0
  34. package/es/math/color-data.js +1 -0
  35. package/es/math/index.d.ts +2 -0
  36. package/es/math/index.js +2 -0
  37. package/es/math/vector-data.d.ts +15 -0
  38. package/es/math/vector-data.js +1 -0
  39. package/es/scene.d.ts +5 -1
  40. package/es/shader-data.d.ts +6 -0
  41. package/es/shader-data.js +1 -0
  42. package/es/texture.d.ts +1 -1
  43. package/es/timeline/playables/sprite-color-playable-asset-data.d.ts +2 -1
  44. package/es/timeline/playables/transform-playable-asset-data.d.ts +2 -1
  45. package/es/timeline/timeline-asset-data.d.ts +3 -1
  46. package/es/timeline/track/track-asset-data.d.ts +2 -1
  47. package/es/type.d.ts +13 -1
  48. package/es/type.js +12 -0
  49. package/es/vfx-item-data.d.ts +2 -1
  50. package/package.json +4 -5
  51. package/es/components.d.ts +0 -210
@@ -1,5 +1,6 @@
1
1
  import type { BinaryPointer } from '../binary';
2
- import type { ComponentData, DataPath, DataType } from '../components';
2
+ import type { ComponentData, DataPath } from '../components';
3
+ import type { DataType } from '../data-type';
3
4
  import type { SizeOverLifetime, RotationOverLifetime, PositionOverLifetime, ColorOverLifetime, RendererOptions, ItemType } from '../type';
4
5
  import type { BaseItem, EndBehavior } from './base-item';
5
6
  /**
@@ -73,47 +73,5 @@ export interface SpriteContent {
73
73
  /**
74
74
  * 图层组件属性
75
75
  */
76
- export interface SpriteComponentData extends ComponentData {
77
- /**
78
- * added by loader
79
- * @default null
80
- */
81
- splits?: SplitParameter[];
82
- /**
83
- * 图层元素基础属性
84
- */
85
- options: SpriteContentOptions;
86
- /**
87
- * 图层元素材质渲染属性
88
- */
89
- renderer: RendererOptions;
90
- /**
91
- * 图层元素大小变化属性
92
- */
93
- sizeOverLifetime?: SizeOverLifetime;
94
- /**
95
- * 图层元素旋转变化属性
96
- */
97
- rotationOverLifetime?: RotationOverLifetime;
98
- /**
99
- * 图层元素位置变化属性
100
- */
101
- positionOverLifetime?: PositionOverLifetime;
102
- /**
103
- * 图层元素色彩变化属性
104
- */
105
- colorOverLifetime?: ColorOverLifetime;
106
- /**
107
- * 图层元素贴图变化属性
108
- */
109
- textureSheetAnimation?: TextureSheetAnimation;
110
- /**
111
- * 图层交互
112
- */
113
- interaction?: {
114
- /**
115
- * 交互行为
116
- */
117
- behavior: InteractBehavior;
118
- };
76
+ export interface SpriteComponentData extends ComponentData, SpriteContent {
119
77
  }
@@ -17,7 +17,40 @@ export interface TextItem extends BaseItem {
17
17
  content: TextContent;
18
18
  endBehavior: EndBehavior;
19
19
  }
20
- export interface TextContentOptions {
20
+ export interface TextContentOptions extends BaseTextContentOptions {
21
+ /**
22
+ * 文本间隔
23
+ * @default 0
24
+ */
25
+ letterSpace?: number;
26
+ /**
27
+ * 文本固定宽度(和自适应宽高冲突)
28
+ * @default 31
29
+ */
30
+ textWidth?: number;
31
+ /**
32
+ * 文本行高
33
+ * @default 31
34
+ */
35
+ lineHeight?: number;
36
+ /**
37
+ * 文本高度
38
+ * @default 31
39
+ */
40
+ textHeight?: number;
41
+ /**
42
+ * 自适应宽高开关(和文本固定宽度冲突)
43
+ * @default false
44
+ */
45
+ autoWidth?: boolean;
46
+ /**
47
+ * 当文字超过最大宽度时,文字的表现行为
48
+ * 仅当设置文字最大宽度后生效
49
+ * @default TextOverflow.display
50
+ */
51
+ textOverflow?: TextOverflow;
52
+ }
53
+ export interface BaseTextContentOptions {
21
54
  /**
22
55
  * 文本内容
23
56
  */
@@ -37,11 +70,6 @@ export interface TextContentOptions {
37
70
  * @default 'Arial'
38
71
  */
39
72
  fontFamily?: string;
40
- /**
41
- * 文本间隔
42
- * @default 0
43
- */
44
- letterSpace?: number;
45
73
  /**
46
74
  * 上下对齐方式
47
75
  * @default TextBaseline.middle
@@ -52,26 +80,6 @@ export interface TextContentOptions {
52
80
  * @default TextAlignment.left
53
81
  */
54
82
  textAlign?: TextAlignment;
55
- /**
56
- * 文本固定宽度(和自适应宽高冲突)
57
- * @default 31
58
- */
59
- textWidth?: number;
60
- /**
61
- * 文本行高
62
- * @default 31
63
- */
64
- lineHeight?: number;
65
- /**
66
- * 文本高度
67
- * @default 31
68
- */
69
- textHeight?: number;
70
- /**
71
- * 自适应宽高开关(和文本固定宽度冲突)
72
- * @default false
73
- */
74
- autoWidth?: boolean;
75
83
  /**
76
84
  * 文本字重
77
85
  * @default TextWeight.normal
@@ -174,42 +182,5 @@ export interface TextContent {
174
182
  /**
175
183
  * 文本元素渲染属性
176
184
  */
177
- export interface TextComponentData extends ComponentData {
178
- /**
179
- * 文本元素基础属性
180
- */
181
- options: TextContentOptions;
182
- /**
183
- * 文本元素材质渲染属性
184
- */
185
- renderer: RendererOptions;
186
- /**
187
- * 文本元素大小变化属性
188
- */
189
- sizeOverLifetime?: SizeOverLifetime;
190
- /**
191
- * 文本元素旋转变化属性
192
- */
193
- rotationOverLifetime?: RotationOverLifetime;
194
- /**
195
- * 文本元素位置变化属性
196
- */
197
- positionOverLifetime?: PositionOverLifetime;
198
- /**
199
- * 文本元素色彩变化属性
200
- */
201
- colorOverLifetime?: ColorOverLifetime;
202
- /**
203
- * 文本元素贴图变化属性
204
- */
205
- textureSheetAnimation?: TextureSheetAnimation;
206
- /**
207
- * 图层交互
208
- */
209
- interaction?: {
210
- /**
211
- * 交互行为
212
- */
213
- behavior: InteractBehavior;
214
- };
185
+ export interface TextComponentData extends ComponentData, TextContent {
215
186
  }
package/es/item.d.ts CHANGED
@@ -10,7 +10,8 @@ import type { CompositionItem } from './item/composition-item';
10
10
  import type { TextItem } from './item/text-item';
11
11
  import type { VideoItem } from './item/video-item';
12
12
  import type { AudioItem } from './item/audio-item';
13
+ import type { RichTextItem } from './item/rich-text-item';
13
14
  /**
14
15
  * Item 基类,无对应元素
15
16
  */
16
- export type Item = SpriteItem | ParticleItem | NullItem | PluginItem | InteractItem | CameraItem | TextItem | VideoItem | AudioItem | ModelMeshItem<'json'> | ModelSkyboxItem<'json'> | ModelTreeItem<'json'> | ModelLightItem | ModelCameraItem | SpineItem | CompositionItem | ModelMeshItem<'studio'> | ModelSkyboxItem<'studio'> | ModelTreeItem<'studio'>;
17
+ export type Item = SpriteItem | ParticleItem | NullItem | PluginItem | InteractItem | CameraItem | TextItem | RichTextItem | VideoItem | AudioItem | ModelMeshItem<'json'> | ModelSkyboxItem<'json'> | ModelTreeItem<'json'> | ModelLightItem | ModelCameraItem | SpineItem | CompositionItem | ModelMeshItem<'studio'> | ModelSkyboxItem<'studio'> | ModelTreeItem<'studio'>;
@@ -0,0 +1,21 @@
1
+ import type { DataPath } from './components';
2
+ import type { EffectsObjectData } from './effects-object-data';
3
+ import type { Vector4Data, ColorData, Vector2Data } from './math';
4
+ export interface MaterialTextureProperty {
5
+ texture: DataPath;
6
+ offset?: Vector2Data;
7
+ scale?: Vector2Data;
8
+ }
9
+ export interface MaterialData extends EffectsObjectData {
10
+ shader: DataPath;
11
+ blending?: boolean;
12
+ zWrite?: boolean;
13
+ zTest?: boolean;
14
+ stringTags: Record<string, string>;
15
+ macros: string[];
16
+ ints: Record<string, number>;
17
+ floats: Record<string, number>;
18
+ vector4s: Record<string, Vector4Data>;
19
+ colors: Record<string, ColorData>;
20
+ textures: Record<string, MaterialTextureProperty>;
21
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface ColorData {
2
+ r: number;
3
+ g: number;
4
+ b: number;
5
+ a: number;
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './color-data';
2
+ export * from './vector-data';
@@ -0,0 +1,2 @@
1
+ export * from './color-data';
2
+ export * from './vector-data';
@@ -0,0 +1,15 @@
1
+ export interface Vector4Data {
2
+ x: number;
3
+ y: number;
4
+ z: number;
5
+ w: number;
6
+ }
7
+ export interface Vector3Data {
8
+ x: number;
9
+ y: number;
10
+ z: number;
11
+ }
12
+ export interface Vector2Data {
13
+ x: number;
14
+ y: number;
15
+ }
@@ -0,0 +1 @@
1
+ export {};
package/es/scene.d.ts CHANGED
@@ -4,11 +4,15 @@ import type { PlayerVersion, ShapeGeometry } from './type';
4
4
  import type { TextureDefine } from './texture';
5
5
  import type { FontBase, FontDefine } from './text';
6
6
  import type { BinaryFile } from './binary';
7
- import type { ComponentData, EffectsObjectData, GeometryData, MaterialData, ShaderData } from './components';
7
+ import type { ComponentData } from './components';
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
11
  import type { RenderSettings } from './render-settings';
12
+ import type { EffectsObjectData } from './effects-object-data';
13
+ import type { MaterialData } from './material-data';
14
+ import type { GeometryData } from './geometry-data';
15
+ import type { ShaderData } from './shader-data';
12
16
  /**
13
17
  * runtime 2.0 之前的场景信息
14
18
  * 素材信息存放于统一数据结构中
@@ -0,0 +1,6 @@
1
+ import type { EffectsObjectData } from './effects-object-data';
2
+ export interface ShaderData extends EffectsObjectData {
3
+ vertex: string;
4
+ fragment: string;
5
+ properties?: string;
6
+ }
@@ -0,0 +1 @@
1
+ export {};
package/es/texture.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { BinaryPointer } from './binary';
2
- import type { DataType } from './components';
2
+ import type { DataType } from './data-type';
3
3
  export interface TextureFormatOptions {
4
4
  format?: GLenum;
5
5
  internalFormat?: GLenum;
@@ -1,6 +1,7 @@
1
- import type { DataType, EffectsObjectData } from '../../components';
2
1
  import type { RGBAColorValue } from '../../number-expression';
3
2
  import type { ColorOverLifetime } from '../../type';
3
+ import type { DataType } from '../../data-type';
4
+ import type { EffectsObjectData } from '../../effects-object-data';
4
5
  export interface SpriteColorPlayableAssetData extends EffectsObjectData {
5
6
  dataType: DataType.SpriteColorPlayableAsset;
6
7
  colorOverLifetime?: ColorOverLifetime;
@@ -1,5 +1,6 @@
1
- import type { DataType, EffectsObjectData } from '../../components';
1
+ import type { EffectsObjectData } from '../../effects-object-data';
2
2
  import type { SizeOverLifetime, RotationOverLifetime, PositionOverLifetime } from '../../type';
3
+ import type { DataType } from '../../data-type';
3
4
  export interface TransformPlayableAssetData extends EffectsObjectData {
4
5
  dataType: DataType.TransformPlayableAsset;
5
6
  /**
@@ -1,4 +1,6 @@
1
- import type { EffectsObjectData, DataPath, DataType } from '../components';
1
+ import type { DataPath } from '../components';
2
+ import type { DataType } from '../data-type';
3
+ import type { EffectsObjectData } from '../effects-object-data';
2
4
  export interface TimelineAssetData extends EffectsObjectData {
3
5
  dataType: DataType.TimelineAsset;
4
6
  /**
@@ -1,5 +1,6 @@
1
- import type { DataPath, EffectsObjectData } from '../../components';
1
+ import type { DataPath } from '../../components';
2
2
  import type { TimelineClipData } from '../timeline-clip-data';
3
+ import type { EffectsObjectData } from '../../effects-object-data';
3
4
  export interface TrackAssetData extends EffectsObjectData {
4
5
  /**
5
6
  * 子轨道数据(TrackAssetData)
package/es/type.d.ts CHANGED
@@ -528,6 +528,14 @@ export declare enum ItemType {
528
528
  * 特效元素
529
529
  */
530
530
  effect = "effect",
531
+ /**
532
+ * 形状元素
533
+ */
534
+ shape = "shape",
535
+ /**
536
+ * 后处理元素
537
+ */
538
+ postProcessVolume = "postProcessVolume",
531
539
  /**
532
540
  * 节点元素
533
541
  */
@@ -539,7 +547,11 @@ export declare enum ItemType {
539
547
  /**
540
548
  * 音频元素
541
549
  */
542
- audio = "audio"
550
+ audio = "audio",
551
+ /**
552
+ * 富文本元素
553
+ */
554
+ richtext = "richtext"
543
555
  }
544
556
  /**
545
557
  * 渲染模式
package/es/type.js CHANGED
@@ -260,6 +260,14 @@ export var ItemType;
260
260
  * 特效元素
261
261
  */
262
262
  ItemType["effect"] = "effect";
263
+ /**
264
+ * 形状元素
265
+ */
266
+ ItemType["shape"] = "shape";
267
+ /**
268
+ * 后处理元素
269
+ */
270
+ ItemType["postProcessVolume"] = "postProcessVolume";
263
271
  /**
264
272
  * 节点元素
265
273
  */
@@ -272,6 +280,10 @@ export var ItemType;
272
280
  * 音频元素
273
281
  */
274
282
  ItemType["audio"] = "audio";
283
+ /**
284
+ * 富文本元素
285
+ */
286
+ ItemType["richtext"] = "richtext";
275
287
  })(ItemType || (ItemType = {}));
276
288
  /**
277
289
  * 渲染模式
@@ -1,4 +1,5 @@
1
- import type { DataPath, EffectsObjectData } from './components';
1
+ import type { DataPath } from './components';
2
+ import type { EffectsObjectData } from './effects-object-data';
2
3
  import type { EndBehavior, BaseContent, TransformData } from './item/base-item';
3
4
  import type { ItemType, RenderLevel } from './type';
4
5
  export interface VFXItemData extends EffectsObjectData {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-specification",
3
- "version": "2.1.0-alpha.1",
3
+ "version": "2.1.0-alpha.2",
4
4
  "description": "Galacean Effects JSON Specification",
5
5
  "module": "./es/index.js",
6
6
  "main": "./es/index.js",
@@ -39,13 +39,12 @@
39
39
  "registry": "https://registry.npmjs.org"
40
40
  },
41
41
  "scripts": {
42
- "prebuild": "npm run clean:all",
43
- "build": "npm run build:lib",
42
+ "prebuild": "pnpm clean",
43
+ "build": "pnpm build:lib",
44
44
  "build:lib": "tsc -b tsconfig.build.json",
45
45
  "lint": "eslint src --ext .ts,.mjs",
46
46
  "lint:fix": "eslint src --fix --quiet --ext .ts,.mjs",
47
47
  "check:ts": "tsc -b tsconfig.check.json",
48
- "clean:all": "npm run clean:lib",
49
- "clean:lib": "rimraf es/**"
48
+ "clean": "rimraf es/**"
50
49
  }
51
50
  }
@@ -1,210 +0,0 @@
1
- import type { Vector2Data } from './item/base-item';
2
- export declare enum DataType {
3
- VFXItemData = "VFXItemData",
4
- EffectComponent = "EffectComponent",
5
- Material = "Material",
6
- Shader = "Shader",
7
- SpriteComponent = "SpriteComponent",
8
- ParticleSystem = "ParticleSystem",
9
- InteractComponent = "InteractComponent",
10
- CameraController = "CameraController",
11
- Geometry = "Geometry",
12
- Texture = "Texture",
13
- AnimationClip = "AnimationClip",
14
- TextComponent = "TextComponent",
15
- BinaryAsset = "BinaryAsset",
16
- TrackAsset = "TrackAsset",
17
- TimelineAsset = "TimelineAsset",
18
- ObjectBindingTrack = "ObjectBindingTrack",
19
- TransformTrack = "TransformTrack",
20
- SpriteColorTrack = "SpriteColorTrack",
21
- ActivationTrack = "ActivationTrack",
22
- SubCompositionTrack = "SubCompositionTrack",
23
- FloatPropertyTrack = "FloatPropertyTrack",
24
- ColorPropertyTrack = "ColorPropertyTrack",
25
- Vector4PropertyTrack = "Vector4PropertyTrack",
26
- TransformPlayableAsset = "TransformPlayableAsset",
27
- SpriteColorPlayableAsset = "SpriteColorPlayableAsset",
28
- ActivationPlayableAsset = "ActivationPlayableAsset",
29
- SubCompositionPlayableAsset = "SubCompositionPlayableAsset",
30
- FloatPropertyPlayableAsset = "FloatPropertyPlayableAsset",
31
- ColorPropertyPlayableAsset = "ColorPropertyPlayableAsset",
32
- MeshComponent = "MeshComponent",
33
- SkyboxComponent = "SkyboxComponent",
34
- LightComponent = "LightComponent",
35
- CameraComponent = "CameraComponent",
36
- ModelPluginComponent = "ModelPluginComponent",
37
- TreeComponent = "TreeComponent",
38
- AnimationComponent = "AnimationComponent",
39
- SpineComponent = "SpineComponent",
40
- VideoComponent = "VideoComponent",
41
- AudioComponent = "AudioComponent",
42
- TimelineClip = "TimelineClip"
43
- }
44
- export interface DataPath {
45
- id: string;
46
- }
47
- export interface EffectsObjectData {
48
- id: string;
49
- name?: string;
50
- dataType: DataType;
51
- }
52
- export interface ComponentData extends EffectsObjectData {
53
- item: DataPath;
54
- }
55
- export interface ColorData {
56
- r: number;
57
- g: number;
58
- b: number;
59
- a: number;
60
- }
61
- export interface Vector4Data {
62
- x: number;
63
- y: number;
64
- z: number;
65
- w: number;
66
- }
67
- export interface MaterialTextureProperty {
68
- texture: DataPath;
69
- offset?: Vector2Data;
70
- scale?: Vector2Data;
71
- }
72
- export interface MaterialData extends EffectsObjectData {
73
- shader: DataPath;
74
- blending?: boolean;
75
- zWrite?: boolean;
76
- zTest?: boolean;
77
- stringTags: Record<string, string>;
78
- macros: string[];
79
- ints: Record<string, number>;
80
- floats: Record<string, number>;
81
- vector4s: Record<string, Vector4Data>;
82
- colors: Record<string, ColorData>;
83
- textures: Record<string, MaterialTextureProperty>;
84
- }
85
- export interface GeometryData extends EffectsObjectData {
86
- vertexData: VertexData;
87
- indexFormat: IndexFormatType;
88
- indexOffset: number;
89
- subMeshes: SubMesh[];
90
- /**
91
- * 模型绘制模式,默认为 GeometryType.TRIANGLES(三角形)
92
- * @default GeometryType.TRIANGLES
93
- */
94
- mode: GeometryType;
95
- /**
96
- * 存放 position, uv, normal, indices 的打包数据
97
- */
98
- buffer?: string;
99
- /**
100
- * 存放 position, uv, normal, indices 的二进制数据,用于序列化二进制数据
101
- */
102
- binaryData?: Uint8Array;
103
- /**
104
- * 所有的骨骼名称
105
- */
106
- boneNames?: string[];
107
- rootBoneName?: string;
108
- inverseBindMatrices?: number[];
109
- }
110
- export interface SubMesh {
111
- offset: number;
112
- indexCount?: number;
113
- vertexCount: number;
114
- }
115
- export declare enum GeometryType {
116
- /**
117
- * Draw single points.
118
- */
119
- POINTS = 0,
120
- /**
121
- * Draw lines. Each vertex connects to the one after it.
122
- */
123
- LINES = 1,
124
- /**
125
- * Draw lines. Each set of two vertices is treated as a separate line segment.
126
- */
127
- LINE_LOOP = 2,
128
- /**
129
- * Draw a connected group of line segments from the first vertex to the last.
130
- */
131
- LINE_STRIP = 3,
132
- /**
133
- * Draw triangles. Each set of three vertices creates a separate triangle.
134
- */
135
- TRIANGLES = 4,
136
- /**
137
- * Draw a connected strip of triangles.
138
- */
139
- TRIANGLE_STRIP = 5,
140
- /**
141
- * Draw a connected group of triangles. Each vertex connects to the previous and the first vertex in the fan.
142
- */
143
- TRIANGLE_FAN = 6
144
- }
145
- export interface VertexData {
146
- vertexCount: number;
147
- channels: VertexChannel[];
148
- }
149
- export declare enum VertexFormatType {
150
- Float16 = 0,
151
- Float32 = 1,
152
- Int8 = 2,
153
- Int16 = 3,
154
- Int32 = 4,
155
- UInt8 = 5,
156
- UInt16 = 6,
157
- UInt32 = 7
158
- }
159
- export declare enum IndexFormatType {
160
- None = -1,
161
- UInt8 = 0,
162
- UInt16 = 1,
163
- UInt32 = 2
164
- }
165
- export interface VertexChannel {
166
- semantic: string;
167
- offset: number;
168
- format: VertexFormatType;
169
- dimension: number;
170
- normalize?: boolean;
171
- }
172
- export declare enum VertexBufferSemantic {
173
- Position = "POSITION",
174
- Uv = "TEXCOORD0",
175
- Uv2 = "TEXCOORD1",
176
- Normal = "NORMAL",
177
- Tangent = "TANGENT",
178
- Color = "COLOR",
179
- Joints = "JOINTS",
180
- Weights = "WEIGHTS",
181
- PositionBS0 = "POSITION_BS0",
182
- PositionBS1 = "POSITION_BS1",
183
- PositionBS2 = "POSITION_BS2",
184
- PositionBS3 = "POSITION_BS3",
185
- PositionBS4 = "POSITION_BS4",
186
- PositionBS5 = "POSITION_BS5",
187
- PositionBS6 = "POSITION_BS6",
188
- PositionBS7 = "POSITION_BS7",
189
- NormalBS0 = "NORMAL_BS0",
190
- NormalBS1 = "NORMAL_BS1",
191
- NormalBS2 = "NORMAL_BS2",
192
- NormalBS3 = "NORMAL_BS3",
193
- TangentBS0 = "TANGENT_BS0",
194
- TangentBS1 = "TANGENT_BS1",
195
- TangentBS2 = "TANGENT_BS2",
196
- TangentBS3 = "TANGENT_BS3"
197
- }
198
- export interface ShaderData extends EffectsObjectData {
199
- vertex: string;
200
- fragment: string;
201
- properties?: string;
202
- }
203
- export interface EffectsPackageData {
204
- fileSummary: FileSummary;
205
- exportObjects: EffectsObjectData[];
206
- }
207
- export interface FileSummary {
208
- guid: string;
209
- assetType: string;
210
- }