@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.
- package/es/animation-clip-data.d.ts +5 -5
- package/es/components.d.ts +26 -9
- package/es/components.js +38 -8
- package/es/item/model/mesh.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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
|
}
|
package/es/components.d.ts
CHANGED
|
@@ -83,7 +83,8 @@ export interface GeometryData extends EffectsObjectData {
|
|
|
83
83
|
}
|
|
84
84
|
interface SubMesh {
|
|
85
85
|
offset: number;
|
|
86
|
-
|
|
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
|
-
|
|
142
|
-
Uv = "
|
|
143
|
-
Uv2 = "
|
|
144
|
-
Normal = "
|
|
145
|
-
Tangent = "
|
|
146
|
-
Color = "
|
|
147
|
-
|
|
148
|
-
|
|
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["
|
|
70
|
-
VertexBufferSemantic["Uv"] = "
|
|
71
|
-
VertexBufferSemantic["Uv2"] = "
|
|
72
|
-
VertexBufferSemantic["Normal"] = "
|
|
73
|
-
VertexBufferSemantic["Tangent"] = "
|
|
74
|
-
VertexBufferSemantic["Color"] = "
|
|
75
|
-
VertexBufferSemantic["
|
|
76
|
-
VertexBufferSemantic["
|
|
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 = {}));
|
package/es/item/model/mesh.d.ts
CHANGED