@shapediver/viewer.data-engine.shared-types 3.16.8 → 3.16.10
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/dist/anchor/interfaces.d.ts +75 -75
- package/dist/anchor/interfaces.js +15 -15
- package/dist/anchor/interfaces.js.map +1 -1
- package/dist/gltfv1/IGLTF_v1.d.ts +358 -358
- package/dist/gltfv1/IGLTF_v1.js +32 -32
- package/dist/gltfv1/ISDGTF_v1.d.ts +49 -49
- package/dist/gltfv1/ISDGTF_v1.js +2 -2
- package/dist/gltfv2/IGLTF_v2.d.ts +355 -355
- package/dist/gltfv2/IGLTF_v2.js +29 -29
- package/dist/index.d.ts +11 -11
- package/dist/index.js +13 -13
- package/dist/material/interfaces.d.ts +77 -77
- package/dist/material/interfaces.js +2 -2
- package/dist/sdtf/ISDTF.d.ts +53 -53
- package/dist/sdtf/ISDTF.js +2 -2
- package/package.json +5 -5
|
@@ -1,356 +1,356 @@
|
|
|
1
|
-
export declare const ACCESSORCOMPONENTTYPE: {
|
|
2
|
-
5120: Int8ArrayConstructor;
|
|
3
|
-
5121: Uint8ArrayConstructor;
|
|
4
|
-
5122: Int16ArrayConstructor;
|
|
5
|
-
5123: Uint16ArrayConstructor;
|
|
6
|
-
5124: Uint16ArrayConstructor;
|
|
7
|
-
5125: Uint32ArrayConstructor;
|
|
8
|
-
5126: Float32ArrayConstructor;
|
|
9
|
-
};
|
|
10
|
-
export declare const ACCESSORCOMPONENTSIZE: {
|
|
11
|
-
5120: number;
|
|
12
|
-
5121: number;
|
|
13
|
-
5122: number;
|
|
14
|
-
5123: number;
|
|
15
|
-
5125: number;
|
|
16
|
-
5126: number;
|
|
17
|
-
};
|
|
18
|
-
export declare const ACCESSORTYPE: {
|
|
19
|
-
SCALAR: number;
|
|
20
|
-
VEC2: number;
|
|
21
|
-
VEC3: number;
|
|
22
|
-
VEC4: number;
|
|
23
|
-
MAT2: number;
|
|
24
|
-
MAT3: number;
|
|
25
|
-
MAT4: number;
|
|
26
|
-
};
|
|
27
|
-
export interface IGLTF_v2_Accessor {
|
|
28
|
-
bufferView?: number;
|
|
29
|
-
byteOffset?: number;
|
|
30
|
-
componentType: number;
|
|
31
|
-
normalized?: boolean;
|
|
32
|
-
count: number;
|
|
33
|
-
max?: number[];
|
|
34
|
-
min?: number[];
|
|
35
|
-
type: string;
|
|
36
|
-
sparse?: {
|
|
37
|
-
count: number;
|
|
38
|
-
indices: {
|
|
39
|
-
bufferView: number;
|
|
40
|
-
byteOffset?: number;
|
|
41
|
-
componentType: number;
|
|
42
|
-
extensions?: {
|
|
43
|
-
[id: string]: any;
|
|
44
|
-
};
|
|
45
|
-
extras?: any;
|
|
46
|
-
};
|
|
47
|
-
values: {
|
|
48
|
-
bufferView: number;
|
|
49
|
-
byteOffset?: number;
|
|
50
|
-
extensions?: {
|
|
51
|
-
[id: string]: any;
|
|
52
|
-
};
|
|
53
|
-
extras?: any;
|
|
54
|
-
};
|
|
55
|
-
extensions?: {
|
|
56
|
-
[id: string]: any;
|
|
57
|
-
};
|
|
58
|
-
extras?: any;
|
|
59
|
-
};
|
|
60
|
-
name?: string;
|
|
61
|
-
extensions?: {
|
|
62
|
-
[id: string]: any;
|
|
63
|
-
};
|
|
64
|
-
extras?: any;
|
|
65
|
-
}
|
|
66
|
-
export interface IGLTF_v2_Animation {
|
|
67
|
-
channels: {
|
|
68
|
-
sampler: number;
|
|
69
|
-
target: {
|
|
70
|
-
node: number;
|
|
71
|
-
path: string;
|
|
72
|
-
extensions?: {
|
|
73
|
-
[id: string]: any;
|
|
74
|
-
};
|
|
75
|
-
extras?: any;
|
|
76
|
-
};
|
|
77
|
-
extensions?: {
|
|
78
|
-
[id: string]: any;
|
|
79
|
-
};
|
|
80
|
-
extras?: any;
|
|
81
|
-
}[];
|
|
82
|
-
samplers: {
|
|
83
|
-
input: number;
|
|
84
|
-
interpolation?: string;
|
|
85
|
-
output: number;
|
|
86
|
-
extensions?: {
|
|
87
|
-
[id: string]: any;
|
|
88
|
-
};
|
|
89
|
-
extras?: any;
|
|
90
|
-
}[];
|
|
91
|
-
name?: string;
|
|
92
|
-
extensions?: {
|
|
93
|
-
[id: string]: any;
|
|
94
|
-
};
|
|
95
|
-
extras?: any;
|
|
96
|
-
}
|
|
97
|
-
export interface IGLTF_v2_Asset {
|
|
98
|
-
copyright?: string;
|
|
99
|
-
generator?: string;
|
|
100
|
-
version: string;
|
|
101
|
-
minVersion?: string;
|
|
102
|
-
extensions?: {
|
|
103
|
-
[id: string]: any;
|
|
104
|
-
};
|
|
105
|
-
extras?: any;
|
|
106
|
-
}
|
|
107
|
-
export interface IGLTF_v2_Buffer {
|
|
108
|
-
byteLength: number;
|
|
109
|
-
uri?: string;
|
|
110
|
-
name?: string;
|
|
111
|
-
type?: string;
|
|
112
|
-
extensions?: {
|
|
113
|
-
[id: string]: any;
|
|
114
|
-
};
|
|
115
|
-
extras?: any;
|
|
116
|
-
}
|
|
117
|
-
export interface IGLTF_v2_BufferView {
|
|
118
|
-
buffer: number;
|
|
119
|
-
byteLength: number;
|
|
120
|
-
byteOffset?: number;
|
|
121
|
-
byteStride?: number;
|
|
122
|
-
target?: number;
|
|
123
|
-
name?: string;
|
|
124
|
-
extensions?: {
|
|
125
|
-
[id: string]: any;
|
|
126
|
-
};
|
|
127
|
-
extras?: any;
|
|
128
|
-
}
|
|
129
|
-
export interface IGLTF_v2_Camera {
|
|
130
|
-
perspective?: {
|
|
131
|
-
aspectRatio?: number;
|
|
132
|
-
yfov: number;
|
|
133
|
-
zfar?: number;
|
|
134
|
-
znear: number;
|
|
135
|
-
extensions?: {
|
|
136
|
-
[id: string]: any;
|
|
137
|
-
};
|
|
138
|
-
extras?: any;
|
|
139
|
-
};
|
|
140
|
-
orthographic?: {
|
|
141
|
-
xmag: number;
|
|
142
|
-
ymag: number;
|
|
143
|
-
zfar: number;
|
|
144
|
-
znear: number;
|
|
145
|
-
extensions?: {
|
|
146
|
-
[id: string]: any;
|
|
147
|
-
};
|
|
148
|
-
extras?: any;
|
|
149
|
-
};
|
|
150
|
-
type: string;
|
|
151
|
-
name?: string;
|
|
152
|
-
extensions?: {
|
|
153
|
-
[id: string]: any;
|
|
154
|
-
};
|
|
155
|
-
extras?: any;
|
|
156
|
-
}
|
|
157
|
-
export interface IGLTF_v2_Image {
|
|
158
|
-
uri?: string;
|
|
159
|
-
mimeType?: string;
|
|
160
|
-
bufferView?: number;
|
|
161
|
-
name?: string;
|
|
162
|
-
extensions?: {
|
|
163
|
-
[id: string]: any;
|
|
164
|
-
};
|
|
165
|
-
extras?: any;
|
|
166
|
-
}
|
|
167
|
-
export interface IGLTF_v2_Material_KHR_materials_pbrSpecularGlossiness {
|
|
168
|
-
diffuseFactor?: number[];
|
|
169
|
-
diffuseTexture?: {
|
|
170
|
-
index: number;
|
|
171
|
-
texCoord?: number;
|
|
172
|
-
extensions?: {
|
|
173
|
-
[id: string]: any;
|
|
174
|
-
};
|
|
175
|
-
extras?: any;
|
|
176
|
-
};
|
|
177
|
-
specularFactor?: number[];
|
|
178
|
-
glossinessFactor?: number;
|
|
179
|
-
specularGlossinessTexture?: {
|
|
180
|
-
index: number;
|
|
181
|
-
texCoord?: number;
|
|
182
|
-
extensions?: {
|
|
183
|
-
[id: string]: any;
|
|
184
|
-
};
|
|
185
|
-
extras?: any;
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
export interface ISHAPEDIVER_materials_preset {
|
|
189
|
-
version: string;
|
|
190
|
-
materialpreset: number;
|
|
191
|
-
color: number[];
|
|
192
|
-
}
|
|
193
|
-
export interface IGLTF_v2_Material {
|
|
194
|
-
name?: string;
|
|
195
|
-
pbrMetallicRoughness?: {
|
|
196
|
-
baseColorFactor?: number[];
|
|
197
|
-
baseColorTexture?: {
|
|
198
|
-
index: number;
|
|
199
|
-
texCoord?: number;
|
|
200
|
-
extensions?: {
|
|
201
|
-
[id: string]: any;
|
|
202
|
-
};
|
|
203
|
-
extras?: any;
|
|
204
|
-
};
|
|
205
|
-
metallicFactor?: number;
|
|
206
|
-
roughnessFactor?: number;
|
|
207
|
-
metallicRoughnessTexture?: {
|
|
208
|
-
index: number;
|
|
209
|
-
texCoord?: number;
|
|
210
|
-
extensions?: {
|
|
211
|
-
[id: string]: any;
|
|
212
|
-
};
|
|
213
|
-
extras?: any;
|
|
214
|
-
};
|
|
215
|
-
extensions?: {
|
|
216
|
-
[id: string]: any;
|
|
217
|
-
};
|
|
218
|
-
extras?: any;
|
|
219
|
-
};
|
|
220
|
-
normalTexture?: {
|
|
221
|
-
index: number;
|
|
222
|
-
texCoord?: number;
|
|
223
|
-
scale?: number;
|
|
224
|
-
extensions?: {
|
|
225
|
-
[id: string]: any;
|
|
226
|
-
};
|
|
227
|
-
extras?: any;
|
|
228
|
-
};
|
|
229
|
-
occlusionTexture?: {
|
|
230
|
-
index: number;
|
|
231
|
-
texCoord?: number;
|
|
232
|
-
strength?: number;
|
|
233
|
-
extensions?: {
|
|
234
|
-
[id: string]: any;
|
|
235
|
-
};
|
|
236
|
-
extras?: any;
|
|
237
|
-
};
|
|
238
|
-
emissiveTexture?: {
|
|
239
|
-
index: number;
|
|
240
|
-
texCoord?: number;
|
|
241
|
-
extensions?: {
|
|
242
|
-
[id: string]: any;
|
|
243
|
-
};
|
|
244
|
-
extras?: any;
|
|
245
|
-
};
|
|
246
|
-
emissiveFactor?: number[];
|
|
247
|
-
alphaMode?: string;
|
|
248
|
-
alphaCutoff?: number;
|
|
249
|
-
doubleSided?: boolean;
|
|
250
|
-
extensions?: {
|
|
251
|
-
[id: string]: any;
|
|
252
|
-
};
|
|
253
|
-
extras?: any;
|
|
254
|
-
}
|
|
255
|
-
export interface IGLTF_v2_Primitive {
|
|
256
|
-
attributes: {
|
|
257
|
-
[key: string]: number;
|
|
258
|
-
};
|
|
259
|
-
indices?: number;
|
|
260
|
-
material?: number;
|
|
261
|
-
mode?: number;
|
|
262
|
-
targets?: {
|
|
263
|
-
[id: string]: number;
|
|
264
|
-
}[];
|
|
265
|
-
extensions?: {
|
|
266
|
-
[id: string]: any;
|
|
267
|
-
};
|
|
268
|
-
extras?: any;
|
|
269
|
-
}
|
|
270
|
-
export interface IGLTF_v2_Mesh {
|
|
271
|
-
primitives?: IGLTF_v2_Primitive[];
|
|
272
|
-
weights?: number[];
|
|
273
|
-
name?: string;
|
|
274
|
-
extensions?: {
|
|
275
|
-
[id: string]: any;
|
|
276
|
-
};
|
|
277
|
-
extras?: any;
|
|
278
|
-
}
|
|
279
|
-
export interface IGLTF_v2_Node {
|
|
280
|
-
children?: number[];
|
|
281
|
-
mesh?: number;
|
|
282
|
-
skin?: number;
|
|
283
|
-
camera?: number;
|
|
284
|
-
matrix?: number[];
|
|
285
|
-
translation?: number[];
|
|
286
|
-
rotation?: number[];
|
|
287
|
-
scale?: number[];
|
|
288
|
-
weights?: number[];
|
|
289
|
-
name?: string;
|
|
290
|
-
extensions?: {
|
|
291
|
-
[id: string]: any;
|
|
292
|
-
};
|
|
293
|
-
extras?: any;
|
|
294
|
-
}
|
|
295
|
-
export interface IGLTF_v2_Sampler {
|
|
296
|
-
magFilter?: number;
|
|
297
|
-
minFilter?: number;
|
|
298
|
-
wrapS?: number;
|
|
299
|
-
wrapT?: number;
|
|
300
|
-
name?: string;
|
|
301
|
-
extensions?: {
|
|
302
|
-
[id: string]: any;
|
|
303
|
-
};
|
|
304
|
-
extras?: any;
|
|
305
|
-
}
|
|
306
|
-
export interface IGLTF_v2_Scene {
|
|
307
|
-
nodes?: number[];
|
|
308
|
-
name?: string;
|
|
309
|
-
extensions?: {
|
|
310
|
-
[id: string]: any;
|
|
311
|
-
};
|
|
312
|
-
extras?: any;
|
|
313
|
-
}
|
|
314
|
-
export interface IGLTF_v2_Skin {
|
|
315
|
-
inverseBindMatrices?: number;
|
|
316
|
-
skeleton?: number;
|
|
317
|
-
joints: number[];
|
|
318
|
-
name?: string;
|
|
319
|
-
extensions?: {
|
|
320
|
-
[id: string]: any;
|
|
321
|
-
};
|
|
322
|
-
extras?: any;
|
|
323
|
-
}
|
|
324
|
-
export interface IGLTF_v2_Texture {
|
|
325
|
-
sampler?: number;
|
|
326
|
-
source: number;
|
|
327
|
-
name?: string;
|
|
328
|
-
extensions?: {
|
|
329
|
-
[id: string]: any;
|
|
330
|
-
};
|
|
331
|
-
extras?: any;
|
|
332
|
-
}
|
|
333
|
-
export interface IGLTF_v2 {
|
|
334
|
-
extensionsUsed?: string[];
|
|
335
|
-
extensionsRequired?: string[];
|
|
336
|
-
accessors?: IGLTF_v2_Accessor[];
|
|
337
|
-
animations?: IGLTF_v2_Animation[];
|
|
338
|
-
asset: IGLTF_v2_Asset;
|
|
339
|
-
buffers?: IGLTF_v2_Buffer[];
|
|
340
|
-
bufferViews?: IGLTF_v2_BufferView[];
|
|
341
|
-
cameras?: IGLTF_v2_Camera[];
|
|
342
|
-
images?: IGLTF_v2_Image[];
|
|
343
|
-
materials?: IGLTF_v2_Material[];
|
|
344
|
-
meshes?: IGLTF_v2_Mesh[];
|
|
345
|
-
nodes?: IGLTF_v2_Node[];
|
|
346
|
-
samplers?: IGLTF_v2_Sampler[];
|
|
347
|
-
scene?: number;
|
|
348
|
-
scenes?: IGLTF_v2_Scene[];
|
|
349
|
-
skins?: IGLTF_v2_Skin[];
|
|
350
|
-
textures?: IGLTF_v2_Texture[];
|
|
351
|
-
extensions?: {
|
|
352
|
-
[id: string]: any;
|
|
353
|
-
};
|
|
354
|
-
extras?: any;
|
|
355
|
-
}
|
|
1
|
+
export declare const ACCESSORCOMPONENTTYPE: {
|
|
2
|
+
5120: Int8ArrayConstructor;
|
|
3
|
+
5121: Uint8ArrayConstructor;
|
|
4
|
+
5122: Int16ArrayConstructor;
|
|
5
|
+
5123: Uint16ArrayConstructor;
|
|
6
|
+
5124: Uint16ArrayConstructor;
|
|
7
|
+
5125: Uint32ArrayConstructor;
|
|
8
|
+
5126: Float32ArrayConstructor;
|
|
9
|
+
};
|
|
10
|
+
export declare const ACCESSORCOMPONENTSIZE: {
|
|
11
|
+
5120: number;
|
|
12
|
+
5121: number;
|
|
13
|
+
5122: number;
|
|
14
|
+
5123: number;
|
|
15
|
+
5125: number;
|
|
16
|
+
5126: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const ACCESSORTYPE: {
|
|
19
|
+
SCALAR: number;
|
|
20
|
+
VEC2: number;
|
|
21
|
+
VEC3: number;
|
|
22
|
+
VEC4: number;
|
|
23
|
+
MAT2: number;
|
|
24
|
+
MAT3: number;
|
|
25
|
+
MAT4: number;
|
|
26
|
+
};
|
|
27
|
+
export interface IGLTF_v2_Accessor {
|
|
28
|
+
bufferView?: number;
|
|
29
|
+
byteOffset?: number;
|
|
30
|
+
componentType: number;
|
|
31
|
+
normalized?: boolean;
|
|
32
|
+
count: number;
|
|
33
|
+
max?: number[];
|
|
34
|
+
min?: number[];
|
|
35
|
+
type: string;
|
|
36
|
+
sparse?: {
|
|
37
|
+
count: number;
|
|
38
|
+
indices: {
|
|
39
|
+
bufferView: number;
|
|
40
|
+
byteOffset?: number;
|
|
41
|
+
componentType: number;
|
|
42
|
+
extensions?: {
|
|
43
|
+
[id: string]: any;
|
|
44
|
+
};
|
|
45
|
+
extras?: any;
|
|
46
|
+
};
|
|
47
|
+
values: {
|
|
48
|
+
bufferView: number;
|
|
49
|
+
byteOffset?: number;
|
|
50
|
+
extensions?: {
|
|
51
|
+
[id: string]: any;
|
|
52
|
+
};
|
|
53
|
+
extras?: any;
|
|
54
|
+
};
|
|
55
|
+
extensions?: {
|
|
56
|
+
[id: string]: any;
|
|
57
|
+
};
|
|
58
|
+
extras?: any;
|
|
59
|
+
};
|
|
60
|
+
name?: string;
|
|
61
|
+
extensions?: {
|
|
62
|
+
[id: string]: any;
|
|
63
|
+
};
|
|
64
|
+
extras?: any;
|
|
65
|
+
}
|
|
66
|
+
export interface IGLTF_v2_Animation {
|
|
67
|
+
channels: {
|
|
68
|
+
sampler: number;
|
|
69
|
+
target: {
|
|
70
|
+
node: number;
|
|
71
|
+
path: string;
|
|
72
|
+
extensions?: {
|
|
73
|
+
[id: string]: any;
|
|
74
|
+
};
|
|
75
|
+
extras?: any;
|
|
76
|
+
};
|
|
77
|
+
extensions?: {
|
|
78
|
+
[id: string]: any;
|
|
79
|
+
};
|
|
80
|
+
extras?: any;
|
|
81
|
+
}[];
|
|
82
|
+
samplers: {
|
|
83
|
+
input: number;
|
|
84
|
+
interpolation?: string;
|
|
85
|
+
output: number;
|
|
86
|
+
extensions?: {
|
|
87
|
+
[id: string]: any;
|
|
88
|
+
};
|
|
89
|
+
extras?: any;
|
|
90
|
+
}[];
|
|
91
|
+
name?: string;
|
|
92
|
+
extensions?: {
|
|
93
|
+
[id: string]: any;
|
|
94
|
+
};
|
|
95
|
+
extras?: any;
|
|
96
|
+
}
|
|
97
|
+
export interface IGLTF_v2_Asset {
|
|
98
|
+
copyright?: string;
|
|
99
|
+
generator?: string;
|
|
100
|
+
version: string;
|
|
101
|
+
minVersion?: string;
|
|
102
|
+
extensions?: {
|
|
103
|
+
[id: string]: any;
|
|
104
|
+
};
|
|
105
|
+
extras?: any;
|
|
106
|
+
}
|
|
107
|
+
export interface IGLTF_v2_Buffer {
|
|
108
|
+
byteLength: number;
|
|
109
|
+
uri?: string;
|
|
110
|
+
name?: string;
|
|
111
|
+
type?: string;
|
|
112
|
+
extensions?: {
|
|
113
|
+
[id: string]: any;
|
|
114
|
+
};
|
|
115
|
+
extras?: any;
|
|
116
|
+
}
|
|
117
|
+
export interface IGLTF_v2_BufferView {
|
|
118
|
+
buffer: number;
|
|
119
|
+
byteLength: number;
|
|
120
|
+
byteOffset?: number;
|
|
121
|
+
byteStride?: number;
|
|
122
|
+
target?: number;
|
|
123
|
+
name?: string;
|
|
124
|
+
extensions?: {
|
|
125
|
+
[id: string]: any;
|
|
126
|
+
};
|
|
127
|
+
extras?: any;
|
|
128
|
+
}
|
|
129
|
+
export interface IGLTF_v2_Camera {
|
|
130
|
+
perspective?: {
|
|
131
|
+
aspectRatio?: number;
|
|
132
|
+
yfov: number;
|
|
133
|
+
zfar?: number;
|
|
134
|
+
znear: number;
|
|
135
|
+
extensions?: {
|
|
136
|
+
[id: string]: any;
|
|
137
|
+
};
|
|
138
|
+
extras?: any;
|
|
139
|
+
};
|
|
140
|
+
orthographic?: {
|
|
141
|
+
xmag: number;
|
|
142
|
+
ymag: number;
|
|
143
|
+
zfar: number;
|
|
144
|
+
znear: number;
|
|
145
|
+
extensions?: {
|
|
146
|
+
[id: string]: any;
|
|
147
|
+
};
|
|
148
|
+
extras?: any;
|
|
149
|
+
};
|
|
150
|
+
type: string;
|
|
151
|
+
name?: string;
|
|
152
|
+
extensions?: {
|
|
153
|
+
[id: string]: any;
|
|
154
|
+
};
|
|
155
|
+
extras?: any;
|
|
156
|
+
}
|
|
157
|
+
export interface IGLTF_v2_Image {
|
|
158
|
+
uri?: string;
|
|
159
|
+
mimeType?: string;
|
|
160
|
+
bufferView?: number;
|
|
161
|
+
name?: string;
|
|
162
|
+
extensions?: {
|
|
163
|
+
[id: string]: any;
|
|
164
|
+
};
|
|
165
|
+
extras?: any;
|
|
166
|
+
}
|
|
167
|
+
export interface IGLTF_v2_Material_KHR_materials_pbrSpecularGlossiness {
|
|
168
|
+
diffuseFactor?: number[];
|
|
169
|
+
diffuseTexture?: {
|
|
170
|
+
index: number;
|
|
171
|
+
texCoord?: number;
|
|
172
|
+
extensions?: {
|
|
173
|
+
[id: string]: any;
|
|
174
|
+
};
|
|
175
|
+
extras?: any;
|
|
176
|
+
};
|
|
177
|
+
specularFactor?: number[];
|
|
178
|
+
glossinessFactor?: number;
|
|
179
|
+
specularGlossinessTexture?: {
|
|
180
|
+
index: number;
|
|
181
|
+
texCoord?: number;
|
|
182
|
+
extensions?: {
|
|
183
|
+
[id: string]: any;
|
|
184
|
+
};
|
|
185
|
+
extras?: any;
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
export interface ISHAPEDIVER_materials_preset {
|
|
189
|
+
version: string;
|
|
190
|
+
materialpreset: number;
|
|
191
|
+
color: number[];
|
|
192
|
+
}
|
|
193
|
+
export interface IGLTF_v2_Material {
|
|
194
|
+
name?: string;
|
|
195
|
+
pbrMetallicRoughness?: {
|
|
196
|
+
baseColorFactor?: number[];
|
|
197
|
+
baseColorTexture?: {
|
|
198
|
+
index: number;
|
|
199
|
+
texCoord?: number;
|
|
200
|
+
extensions?: {
|
|
201
|
+
[id: string]: any;
|
|
202
|
+
};
|
|
203
|
+
extras?: any;
|
|
204
|
+
};
|
|
205
|
+
metallicFactor?: number;
|
|
206
|
+
roughnessFactor?: number;
|
|
207
|
+
metallicRoughnessTexture?: {
|
|
208
|
+
index: number;
|
|
209
|
+
texCoord?: number;
|
|
210
|
+
extensions?: {
|
|
211
|
+
[id: string]: any;
|
|
212
|
+
};
|
|
213
|
+
extras?: any;
|
|
214
|
+
};
|
|
215
|
+
extensions?: {
|
|
216
|
+
[id: string]: any;
|
|
217
|
+
};
|
|
218
|
+
extras?: any;
|
|
219
|
+
};
|
|
220
|
+
normalTexture?: {
|
|
221
|
+
index: number;
|
|
222
|
+
texCoord?: number;
|
|
223
|
+
scale?: number;
|
|
224
|
+
extensions?: {
|
|
225
|
+
[id: string]: any;
|
|
226
|
+
};
|
|
227
|
+
extras?: any;
|
|
228
|
+
};
|
|
229
|
+
occlusionTexture?: {
|
|
230
|
+
index: number;
|
|
231
|
+
texCoord?: number;
|
|
232
|
+
strength?: number;
|
|
233
|
+
extensions?: {
|
|
234
|
+
[id: string]: any;
|
|
235
|
+
};
|
|
236
|
+
extras?: any;
|
|
237
|
+
};
|
|
238
|
+
emissiveTexture?: {
|
|
239
|
+
index: number;
|
|
240
|
+
texCoord?: number;
|
|
241
|
+
extensions?: {
|
|
242
|
+
[id: string]: any;
|
|
243
|
+
};
|
|
244
|
+
extras?: any;
|
|
245
|
+
};
|
|
246
|
+
emissiveFactor?: number[];
|
|
247
|
+
alphaMode?: string;
|
|
248
|
+
alphaCutoff?: number;
|
|
249
|
+
doubleSided?: boolean;
|
|
250
|
+
extensions?: {
|
|
251
|
+
[id: string]: any;
|
|
252
|
+
};
|
|
253
|
+
extras?: any;
|
|
254
|
+
}
|
|
255
|
+
export interface IGLTF_v2_Primitive {
|
|
256
|
+
attributes: {
|
|
257
|
+
[key: string]: number;
|
|
258
|
+
};
|
|
259
|
+
indices?: number;
|
|
260
|
+
material?: number;
|
|
261
|
+
mode?: number;
|
|
262
|
+
targets?: {
|
|
263
|
+
[id: string]: number;
|
|
264
|
+
}[];
|
|
265
|
+
extensions?: {
|
|
266
|
+
[id: string]: any;
|
|
267
|
+
};
|
|
268
|
+
extras?: any;
|
|
269
|
+
}
|
|
270
|
+
export interface IGLTF_v2_Mesh {
|
|
271
|
+
primitives?: IGLTF_v2_Primitive[];
|
|
272
|
+
weights?: number[];
|
|
273
|
+
name?: string;
|
|
274
|
+
extensions?: {
|
|
275
|
+
[id: string]: any;
|
|
276
|
+
};
|
|
277
|
+
extras?: any;
|
|
278
|
+
}
|
|
279
|
+
export interface IGLTF_v2_Node {
|
|
280
|
+
children?: number[];
|
|
281
|
+
mesh?: number;
|
|
282
|
+
skin?: number;
|
|
283
|
+
camera?: number;
|
|
284
|
+
matrix?: number[];
|
|
285
|
+
translation?: number[];
|
|
286
|
+
rotation?: number[];
|
|
287
|
+
scale?: number[];
|
|
288
|
+
weights?: number[];
|
|
289
|
+
name?: string;
|
|
290
|
+
extensions?: {
|
|
291
|
+
[id: string]: any;
|
|
292
|
+
};
|
|
293
|
+
extras?: any;
|
|
294
|
+
}
|
|
295
|
+
export interface IGLTF_v2_Sampler {
|
|
296
|
+
magFilter?: number;
|
|
297
|
+
minFilter?: number;
|
|
298
|
+
wrapS?: number;
|
|
299
|
+
wrapT?: number;
|
|
300
|
+
name?: string;
|
|
301
|
+
extensions?: {
|
|
302
|
+
[id: string]: any;
|
|
303
|
+
};
|
|
304
|
+
extras?: any;
|
|
305
|
+
}
|
|
306
|
+
export interface IGLTF_v2_Scene {
|
|
307
|
+
nodes?: number[];
|
|
308
|
+
name?: string;
|
|
309
|
+
extensions?: {
|
|
310
|
+
[id: string]: any;
|
|
311
|
+
};
|
|
312
|
+
extras?: any;
|
|
313
|
+
}
|
|
314
|
+
export interface IGLTF_v2_Skin {
|
|
315
|
+
inverseBindMatrices?: number;
|
|
316
|
+
skeleton?: number;
|
|
317
|
+
joints: number[];
|
|
318
|
+
name?: string;
|
|
319
|
+
extensions?: {
|
|
320
|
+
[id: string]: any;
|
|
321
|
+
};
|
|
322
|
+
extras?: any;
|
|
323
|
+
}
|
|
324
|
+
export interface IGLTF_v2_Texture {
|
|
325
|
+
sampler?: number;
|
|
326
|
+
source: number;
|
|
327
|
+
name?: string;
|
|
328
|
+
extensions?: {
|
|
329
|
+
[id: string]: any;
|
|
330
|
+
};
|
|
331
|
+
extras?: any;
|
|
332
|
+
}
|
|
333
|
+
export interface IGLTF_v2 {
|
|
334
|
+
extensionsUsed?: string[];
|
|
335
|
+
extensionsRequired?: string[];
|
|
336
|
+
accessors?: IGLTF_v2_Accessor[];
|
|
337
|
+
animations?: IGLTF_v2_Animation[];
|
|
338
|
+
asset: IGLTF_v2_Asset;
|
|
339
|
+
buffers?: IGLTF_v2_Buffer[];
|
|
340
|
+
bufferViews?: IGLTF_v2_BufferView[];
|
|
341
|
+
cameras?: IGLTF_v2_Camera[];
|
|
342
|
+
images?: IGLTF_v2_Image[];
|
|
343
|
+
materials?: IGLTF_v2_Material[];
|
|
344
|
+
meshes?: IGLTF_v2_Mesh[];
|
|
345
|
+
nodes?: IGLTF_v2_Node[];
|
|
346
|
+
samplers?: IGLTF_v2_Sampler[];
|
|
347
|
+
scene?: number;
|
|
348
|
+
scenes?: IGLTF_v2_Scene[];
|
|
349
|
+
skins?: IGLTF_v2_Skin[];
|
|
350
|
+
textures?: IGLTF_v2_Texture[];
|
|
351
|
+
extensions?: {
|
|
352
|
+
[id: string]: any;
|
|
353
|
+
};
|
|
354
|
+
extras?: any;
|
|
355
|
+
}
|
|
356
356
|
//# sourceMappingURL=IGLTF_v2.d.ts.map
|