@galacean/effects-specification 2.0.0-alpha.11 → 2.0.0-alpha.13

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.
@@ -7,20 +7,20 @@ export interface AnimationClipData extends EffectsObjectData {
7
7
  floatCurves: FloatCurveData[];
8
8
  }
9
9
  export interface PositionCurveData {
10
- path: string[];
10
+ path: string;
11
11
  keyFrames: FixedVec3Expression;
12
12
  }
13
13
  export interface EulerCurveData {
14
- path: string[];
14
+ path: string;
15
15
  keyFrames: FixedVec3Expression;
16
16
  }
17
17
  export interface ScaleCurveData {
18
- path: string[];
18
+ path: string;
19
19
  keyFrames: FixedVec3Expression;
20
20
  }
21
21
  export interface FloatCurveData {
22
- path: string[];
23
- property: string[];
22
+ path: string;
23
+ property: string;
24
24
  className: string;
25
25
  keyFrames: FixedNumberExpression;
26
26
  }
@@ -83,7 +83,8 @@ export interface GeometryData extends EffectsObjectData {
83
83
  }
84
84
  interface SubMesh {
85
85
  offset: number;
86
- count: number;
86
+ indexCount?: number;
87
+ vertexCount: number;
87
88
  }
88
89
  export declare enum GeometryType {
89
90
  /**
@@ -138,14 +139,30 @@ export interface VertexChannel {
138
139
  normalize?: boolean;
139
140
  }
140
141
  export declare enum VertexBufferSemantic {
141
- Positon = "position",
142
- Uv = "uv",
143
- Uv2 = "uv2",
144
- Normal = "normal",
145
- Tangent = "tangent",
146
- Color = "color",
147
- BoneIndices = "boneIndices",
148
- BoneWeights = "boneWeights"
142
+ Position = "POSITION",
143
+ Uv = "TEXCOORD0",
144
+ Uv2 = "TEXCOORD1",
145
+ Normal = "NORMAL",
146
+ Tangent = "TANGENT",
147
+ Color = "COLOR",
148
+ Joints = "JOINTS",
149
+ Weights = "WEIGHTS",
150
+ PositionBS0 = "POSITION_BS0",
151
+ PositionBS1 = "POSITION_BS1",
152
+ PositionBS2 = "POSITION_BS2",
153
+ PositionBS3 = "POSITION_BS3",
154
+ PositionBS4 = "POSITION_BS4",
155
+ PositionBS5 = "POSITION_BS5",
156
+ PositionBS6 = "POSITION_BS6",
157
+ PositionBS7 = "POSITION_BS7",
158
+ NormalBS0 = "NORMAL_BS0",
159
+ NormalBS1 = "NORMAL_BS1",
160
+ NormalBS2 = "NORMAL_BS2",
161
+ NormalBS3 = "NORMAL_BS3",
162
+ TangentBS0 = "TANGENT_BS0",
163
+ TangentBS1 = "TANGENT_BS1",
164
+ TangentBS2 = "TANGENT_BS2",
165
+ TangentBS3 = "TANGENT_BS3"
149
166
  }
150
167
  export interface ShaderData extends EffectsObjectData {
151
168
  vertex: string;
package/es/components.js CHANGED
@@ -64,14 +64,44 @@ export var IndexFormatType;
64
64
  IndexFormatType[IndexFormatType["UInt16"] = 0] = "UInt16";
65
65
  IndexFormatType[IndexFormatType["UInt32"] = 1] = "UInt32";
66
66
  })(IndexFormatType || (IndexFormatType = {}));
67
+ // BINORMAL[n] Binormal float4
68
+ // BLENDINDICES[n] 混合索引 uint
69
+ // BLENDWEIGHT[n] 混合权重 FLOAT
70
+ // COLOR[n] 漫射和反射颜色 float4
71
+ // NORMAL[n] 法向矢量 float4
72
+ // POSITION[n] 对象空间中的顶点位置。 float4
73
+ // POSITIONT 变换的顶点位置。 float4
74
+ // PSIZE[n] 点大小 FLOAT
75
+ // TANGENT[n] 正切 float4
76
+ // TEXCOORD[n] 纹理坐标 float4
77
+ // POSITION_BS[n] Blend Shape 空间中的顶点位置 float4
78
+ // NORMAL_BS[n] Blend Shape 空间中的法向矢量 float4
79
+ // TANGENT_BS[n] Blend Shape 空间中的正切矢量 float4
67
80
  export var VertexBufferSemantic;
68
81
  (function (VertexBufferSemantic) {
69
- VertexBufferSemantic["Positon"] = "position";
70
- VertexBufferSemantic["Uv"] = "uv";
71
- VertexBufferSemantic["Uv2"] = "uv2";
72
- VertexBufferSemantic["Normal"] = "normal";
73
- VertexBufferSemantic["Tangent"] = "tangent";
74
- VertexBufferSemantic["Color"] = "color";
75
- VertexBufferSemantic["BoneIndices"] = "boneIndices";
76
- VertexBufferSemantic["BoneWeights"] = "boneWeights";
82
+ VertexBufferSemantic["Position"] = "POSITION";
83
+ VertexBufferSemantic["Uv"] = "TEXCOORD0";
84
+ VertexBufferSemantic["Uv2"] = "TEXCOORD1";
85
+ VertexBufferSemantic["Normal"] = "NORMAL";
86
+ VertexBufferSemantic["Tangent"] = "TANGENT";
87
+ VertexBufferSemantic["Color"] = "COLOR";
88
+ VertexBufferSemantic["Joints"] = "JOINTS";
89
+ VertexBufferSemantic["Weights"] = "WEIGHTS";
90
+ //
91
+ VertexBufferSemantic["PositionBS0"] = "POSITION_BS0";
92
+ VertexBufferSemantic["PositionBS1"] = "POSITION_BS1";
93
+ VertexBufferSemantic["PositionBS2"] = "POSITION_BS2";
94
+ VertexBufferSemantic["PositionBS3"] = "POSITION_BS3";
95
+ VertexBufferSemantic["PositionBS4"] = "POSITION_BS4";
96
+ VertexBufferSemantic["PositionBS5"] = "POSITION_BS5";
97
+ VertexBufferSemantic["PositionBS6"] = "POSITION_BS6";
98
+ VertexBufferSemantic["PositionBS7"] = "POSITION_BS7";
99
+ VertexBufferSemantic["NormalBS0"] = "NORMAL_BS0";
100
+ VertexBufferSemantic["NormalBS1"] = "NORMAL_BS1";
101
+ VertexBufferSemantic["NormalBS2"] = "NORMAL_BS2";
102
+ VertexBufferSemantic["NormalBS3"] = "NORMAL_BS3";
103
+ VertexBufferSemantic["TangentBS0"] = "TANGENT_BS0";
104
+ VertexBufferSemantic["TangentBS1"] = "TANGENT_BS1";
105
+ VertexBufferSemantic["TangentBS2"] = "TANGENT_BS2";
106
+ VertexBufferSemantic["TangentBS3"] = "TANGENT_BS3";
77
107
  })(VertexBufferSemantic || (VertexBufferSemantic = {}));
@@ -86,7 +86,7 @@ export interface ModelMeshComponentData extends ComponentData {
86
86
  /**
87
87
  * 骨骼根节点
88
88
  */
89
- rootBone: DataPath;
89
+ rootBone?: DataPath;
90
90
  /**
91
91
  * Morph数据
92
92
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-specification",
3
- "version": "2.0.0-alpha.11",
3
+ "version": "2.0.0-alpha.13",
4
4
  "description": "Galacean Effects JSON Specification",
5
5
  "module": "./es/index.js",
6
6
  "main": "./es/index.js",