@babylonjs/loaders 5.0.0-rc.6 → 5.0.0
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/OBJ/index.d.ts +4 -4
- package/OBJ/index.js +4 -4
- package/OBJ/mtlFileLoader.d.ts +41 -41
- package/OBJ/mtlFileLoader.js +232 -232
- package/OBJ/mtlFileLoader.js.map +1 -1
- package/OBJ/objFileLoader.d.ts +126 -126
- package/OBJ/objFileLoader.js +296 -296
- package/OBJ/objFileLoader.js.map +1 -1
- package/OBJ/objLoadingOptions.d.ts +43 -43
- package/OBJ/objLoadingOptions.js +1 -1
- package/OBJ/objLoadingOptions.js.map +1 -1
- package/OBJ/solidParser.d.ts +154 -154
- package/OBJ/solidParser.js +693 -693
- package/OBJ/solidParser.js.map +1 -1
- package/STL/index.d.ts +1 -1
- package/STL/index.js +1 -1
- package/STL/stlFileLoader.d.ts +64 -64
- package/STL/stlFileLoader.js +233 -233
- package/STL/stlFileLoader.js.map +1 -1
- package/glTF/1.0/glTFBinaryExtension.d.ts +13 -13
- package/glTF/1.0/glTFBinaryExtension.js +60 -60
- package/glTF/1.0/glTFBinaryExtension.js.map +1 -1
- package/glTF/1.0/glTFLoader.d.ts +136 -136
- package/glTF/1.0/glTFLoader.js +1814 -1815
- package/glTF/1.0/glTFLoader.js.map +1 -1
- package/glTF/1.0/glTFLoaderInterfaces.d.ts +412 -412
- package/glTF/1.0/glTFLoaderInterfaces.js +95 -95
- package/glTF/1.0/glTFLoaderInterfaces.js.map +1 -1
- package/glTF/1.0/glTFLoaderUtils.d.ts +63 -62
- package/glTF/1.0/glTFLoaderUtils.js +250 -250
- package/glTF/1.0/glTFLoaderUtils.js.map +1 -1
- package/glTF/1.0/glTFMaterialsCommonExtension.d.ts +10 -10
- package/glTF/1.0/glTFMaterialsCommonExtension.js +129 -129
- package/glTF/1.0/glTFMaterialsCommonExtension.js.map +1 -1
- package/glTF/1.0/index.d.ts +5 -5
- package/glTF/1.0/index.js +5 -5
- package/glTF/2.0/Extensions/EXT_lights_image_based.d.ts +43 -43
- package/glTF/2.0/Extensions/EXT_lights_image_based.js +117 -117
- package/glTF/2.0/Extensions/EXT_lights_image_based.js.map +1 -1
- package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.d.ts +36 -36
- package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js +88 -88
- package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js.map +1 -1
- package/glTF/2.0/Extensions/EXT_meshopt_compression.d.ts +34 -34
- package/glTF/2.0/Extensions/EXT_meshopt_compression.js +49 -49
- package/glTF/2.0/Extensions/EXT_meshopt_compression.js.map +1 -1
- package/glTF/2.0/Extensions/EXT_texture_webp.d.ts +29 -29
- package/glTF/2.0/Extensions/EXT_texture_webp.js +40 -40
- package/glTF/2.0/Extensions/EXT_texture_webp.js.map +1 -1
- package/glTF/2.0/Extensions/ExtrasAsMetadata.d.ts +50 -50
- package/glTF/2.0/Extensions/ExtrasAsMetadata.js +73 -73
- package/glTF/2.0/Extensions/ExtrasAsMetadata.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_draco_mesh_compression.d.ts +39 -39
- package/glTF/2.0/Extensions/KHR_draco_mesh_compression.js +112 -112
- package/glTF/2.0/Extensions/KHR_draco_mesh_compression.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_lights_punctual.d.ts +36 -36
- package/glTF/2.0/Extensions/KHR_lights_punctual.js +89 -89
- package/glTF/2.0/Extensions/KHR_lights_punctual.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_clearcoat.d.ts +39 -39
- package/glTF/2.0/Extensions/KHR_materials_clearcoat.js +94 -94
- package/glTF/2.0/Extensions/KHR_materials_clearcoat.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_emissive_strength.d.ts +38 -38
- package/glTF/2.0/Extensions/KHR_materials_emissive_strength.js +53 -53
- package/glTF/2.0/Extensions/KHR_materials_emissive_strength.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_ior.d.ts +42 -42
- package/glTF/2.0/Extensions/KHR_materials_ior.js +62 -62
- package/glTF/2.0/Extensions/KHR_materials_ior.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.d.ts +38 -38
- package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js +80 -80
- package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_sheen.d.ts +39 -39
- package/glTF/2.0/Extensions/KHR_materials_sheen.js +84 -84
- package/glTF/2.0/Extensions/KHR_materials_sheen.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_specular.d.ts +38 -38
- package/glTF/2.0/Extensions/KHR_materials_specular.js +74 -74
- package/glTF/2.0/Extensions/KHR_materials_specular.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_translucency.d.ts +39 -39
- package/glTF/2.0/Extensions/KHR_materials_translucency.js +83 -83
- package/glTF/2.0/Extensions/KHR_materials_translucency.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_transmission.d.ts +38 -38
- package/glTF/2.0/Extensions/KHR_materials_transmission.js +288 -288
- package/glTF/2.0/Extensions/KHR_materials_transmission.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_unlit.d.ts +38 -38
- package/glTF/2.0/Extensions/KHR_materials_unlit.js +73 -73
- package/glTF/2.0/Extensions/KHR_materials_unlit.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_variants.d.ts +87 -87
- package/glTF/2.0/Extensions/KHR_materials_variants.js +254 -254
- package/glTF/2.0/Extensions/KHR_materials_variants.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_volume.d.ts +39 -39
- package/glTF/2.0/Extensions/KHR_materials_volume.js +85 -85
- package/glTF/2.0/Extensions/KHR_materials_volume.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_mesh_quantization.d.ts +22 -22
- package/glTF/2.0/Extensions/KHR_mesh_quantization.js +23 -23
- package/glTF/2.0/Extensions/KHR_mesh_quantization.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_texture_basisu.d.ts +29 -29
- package/glTF/2.0/Extensions/KHR_texture_basisu.js +40 -40
- package/glTF/2.0/Extensions/KHR_texture_basisu.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_texture_transform.d.ts +33 -33
- package/glTF/2.0/Extensions/KHR_texture_transform.js +61 -61
- package/glTF/2.0/Extensions/KHR_texture_transform.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts +32 -32
- package/glTF/2.0/Extensions/KHR_xmp_json_ld.js +49 -49
- package/glTF/2.0/Extensions/KHR_xmp_json_ld.js.map +1 -1
- package/glTF/2.0/Extensions/MSFT_audio_emitter.d.ts +54 -54
- package/glTF/2.0/Extensions/MSFT_audio_emitter.js +240 -240
- package/glTF/2.0/Extensions/MSFT_audio_emitter.js.map +1 -1
- package/glTF/2.0/Extensions/MSFT_lod.d.ts +109 -109
- package/glTF/2.0/Extensions/MSFT_lod.js +369 -369
- package/glTF/2.0/Extensions/MSFT_lod.js.map +1 -1
- package/glTF/2.0/Extensions/MSFT_minecraftMesh.d.ts +14 -14
- package/glTF/2.0/Extensions/MSFT_minecraftMesh.js +36 -36
- package/glTF/2.0/Extensions/MSFT_minecraftMesh.js.map +1 -1
- package/glTF/2.0/Extensions/MSFT_sRGBFactors.d.ts +14 -14
- package/glTF/2.0/Extensions/MSFT_sRGBFactors.js +36 -36
- package/glTF/2.0/Extensions/MSFT_sRGBFactors.js.map +1 -1
- package/glTF/2.0/Extensions/index.d.ts +26 -26
- package/glTF/2.0/Extensions/index.js +26 -26
- package/glTF/2.0/glTFLoader.d.ts +406 -405
- package/glTF/2.0/glTFLoader.js +2366 -2366
- package/glTF/2.0/glTFLoader.js.map +1 -1
- package/glTF/2.0/glTFLoaderExtension.d.ts +152 -152
- package/glTF/2.0/glTFLoaderExtension.js +1 -1
- package/glTF/2.0/glTFLoaderExtension.js.map +1 -1
- package/glTF/2.0/glTFLoaderInterfaces.d.ts +211 -211
- package/glTF/2.0/glTFLoaderInterfaces.js +1 -1
- package/glTF/2.0/glTFLoaderInterfaces.js.map +1 -1
- package/glTF/2.0/index.d.ts +4 -4
- package/glTF/2.0/index.js +5 -4
- package/glTF/2.0/index.js.map +1 -1
- package/glTF/glTFFileLoader.d.ts +433 -433
- package/glTF/glTFFileLoader.js +927 -927
- package/glTF/glTFFileLoader.js.map +1 -1
- package/glTF/glTFValidation.d.ts +29 -29
- package/glTF/glTFValidation.js +123 -123
- package/glTF/glTFValidation.js.map +1 -1
- package/glTF/index.d.ts +5 -5
- package/glTF/index.js +6 -5
- package/glTF/index.js.map +1 -1
- package/index.d.ts +3 -3
- package/index.js +4 -3
- package/index.js.map +1 -1
- package/legacy/legacy-glTF.d.ts +2 -2
- package/legacy/legacy-glTF.js +18 -18
- package/legacy/legacy-glTF.js.map +1 -1
- package/legacy/legacy-glTF1.d.ts +2 -2
- package/legacy/legacy-glTF1.js +15 -14
- package/legacy/legacy-glTF1.js.map +1 -1
- package/legacy/legacy-glTF1FileLoader.d.ts +2 -2
- package/legacy/legacy-glTF1FileLoader.js +3 -3
- package/legacy/legacy-glTF1FileLoader.js.map +1 -1
- package/legacy/legacy-glTF2.d.ts +2 -2
- package/legacy/legacy-glTF2.js +33 -32
- package/legacy/legacy-glTF2.js.map +1 -1
- package/legacy/legacy-glTF2FileLoader.d.ts +2 -2
- package/legacy/legacy-glTF2FileLoader.js +3 -3
- package/legacy/legacy-glTF2FileLoader.js.map +1 -1
- package/legacy/legacy-glTFFileLoader.d.ts +3 -3
- package/legacy/legacy-glTFFileLoader.js +4 -4
- package/legacy/legacy-glTFFileLoader.js.map +1 -1
- package/legacy/legacy-objFileLoader.d.ts +1 -1
- package/legacy/legacy-objFileLoader.js +13 -12
- package/legacy/legacy-objFileLoader.js.map +1 -1
- package/legacy/legacy-stlFileLoader.d.ts +1 -1
- package/legacy/legacy-stlFileLoader.js +13 -12
- package/legacy/legacy-stlFileLoader.js.map +1 -1
- package/legacy/legacy.d.ts +6 -6
- package/legacy/legacy.js +8 -7
- package/legacy/legacy.js.map +1 -1
- package/license.md +71 -0
- package/package.json +25 -6
@@ -1,412 +1,412 @@
|
|
1
|
-
import { AssetContainer } from "@babylonjs/core/assetContainer.js";
|
2
|
-
import { Bone } from "@babylonjs/core/Bones/bone.js";
|
3
|
-
import { Skeleton } from "@babylonjs/core/Bones/skeleton.js";
|
4
|
-
import { Texture } from "@babylonjs/core/Materials/Textures/texture.js";
|
5
|
-
import { Node } from "@babylonjs/core/node.js";
|
6
|
-
import { Scene } from "@babylonjs/core/scene.js";
|
7
|
-
import { Nullable } from "@babylonjs/core/types.js";
|
8
|
-
/**
|
9
|
-
* Enums
|
10
|
-
* @hidden
|
11
|
-
*/
|
12
|
-
export declare enum EComponentType {
|
13
|
-
BYTE = 5120,
|
14
|
-
UNSIGNED_BYTE = 5121,
|
15
|
-
SHORT = 5122,
|
16
|
-
UNSIGNED_SHORT = 5123,
|
17
|
-
FLOAT = 5126
|
18
|
-
}
|
19
|
-
/** @hidden */
|
20
|
-
export declare enum EShaderType {
|
21
|
-
FRAGMENT = 35632,
|
22
|
-
VERTEX = 35633
|
23
|
-
}
|
24
|
-
/** @hidden */
|
25
|
-
export declare enum EParameterType {
|
26
|
-
BYTE = 5120,
|
27
|
-
UNSIGNED_BYTE = 5121,
|
28
|
-
SHORT = 5122,
|
29
|
-
UNSIGNED_SHORT = 5123,
|
30
|
-
INT = 5124,
|
31
|
-
UNSIGNED_INT = 5125,
|
32
|
-
FLOAT = 5126,
|
33
|
-
FLOAT_VEC2 = 35664,
|
34
|
-
FLOAT_VEC3 = 35665,
|
35
|
-
FLOAT_VEC4 = 35666,
|
36
|
-
INT_VEC2 = 35667,
|
37
|
-
INT_VEC3 = 35668,
|
38
|
-
INT_VEC4 = 35669,
|
39
|
-
BOOL = 35670,
|
40
|
-
BOOL_VEC2 = 35671,
|
41
|
-
BOOL_VEC3 = 35672,
|
42
|
-
BOOL_VEC4 = 35673,
|
43
|
-
FLOAT_MAT2 = 35674,
|
44
|
-
FLOAT_MAT3 = 35675,
|
45
|
-
FLOAT_MAT4 = 35676,
|
46
|
-
SAMPLER_2D = 35678
|
47
|
-
}
|
48
|
-
/** @hidden */
|
49
|
-
export declare enum ETextureWrapMode {
|
50
|
-
CLAMP_TO_EDGE = 33071,
|
51
|
-
MIRRORED_REPEAT = 33648,
|
52
|
-
REPEAT = 10497
|
53
|
-
}
|
54
|
-
/** @hidden */
|
55
|
-
export declare enum ETextureFilterType {
|
56
|
-
NEAREST = 9728,
|
57
|
-
LINEAR = 9728,
|
58
|
-
NEAREST_MIPMAP_NEAREST = 9984,
|
59
|
-
LINEAR_MIPMAP_NEAREST = 9985,
|
60
|
-
NEAREST_MIPMAP_LINEAR = 9986,
|
61
|
-
LINEAR_MIPMAP_LINEAR = 9987
|
62
|
-
}
|
63
|
-
/** @hidden */
|
64
|
-
export declare enum ETextureFormat {
|
65
|
-
ALPHA = 6406,
|
66
|
-
RGB = 6407,
|
67
|
-
RGBA = 6408,
|
68
|
-
LUMINANCE = 6409,
|
69
|
-
LUMINANCE_ALPHA = 6410
|
70
|
-
}
|
71
|
-
/** @hidden */
|
72
|
-
export declare enum ECullingType {
|
73
|
-
FRONT = 1028,
|
74
|
-
BACK = 1029,
|
75
|
-
FRONT_AND_BACK = 1032
|
76
|
-
}
|
77
|
-
/** @hidden */
|
78
|
-
export declare enum EBlendingFunction {
|
79
|
-
ZERO = 0,
|
80
|
-
ONE = 1,
|
81
|
-
SRC_COLOR = 768,
|
82
|
-
ONE_MINUS_SRC_COLOR = 769,
|
83
|
-
DST_COLOR = 774,
|
84
|
-
ONE_MINUS_DST_COLOR = 775,
|
85
|
-
SRC_ALPHA = 770,
|
86
|
-
ONE_MINUS_SRC_ALPHA = 771,
|
87
|
-
DST_ALPHA = 772,
|
88
|
-
ONE_MINUS_DST_ALPHA = 773,
|
89
|
-
CONSTANT_COLOR = 32769,
|
90
|
-
ONE_MINUS_CONSTANT_COLOR = 32770,
|
91
|
-
CONSTANT_ALPHA = 32771,
|
92
|
-
ONE_MINUS_CONSTANT_ALPHA = 32772,
|
93
|
-
SRC_ALPHA_SATURATE = 776
|
94
|
-
}
|
95
|
-
/** @hidden */
|
96
|
-
export interface IGLTFProperty {
|
97
|
-
extensions?: {
|
98
|
-
[key: string]: any;
|
99
|
-
};
|
100
|
-
extras?: Object;
|
101
|
-
}
|
102
|
-
/** @hidden */
|
103
|
-
export interface IGLTFChildRootProperty extends IGLTFProperty {
|
104
|
-
name?: string;
|
105
|
-
}
|
106
|
-
/** @hidden */
|
107
|
-
export interface IGLTFAccessor extends IGLTFChildRootProperty {
|
108
|
-
bufferView: string;
|
109
|
-
byteOffset: number;
|
110
|
-
byteStride: number;
|
111
|
-
count: number;
|
112
|
-
type: string;
|
113
|
-
componentType: EComponentType;
|
114
|
-
max?: number[];
|
115
|
-
min?: number[];
|
116
|
-
name?: string;
|
117
|
-
}
|
118
|
-
/** @hidden */
|
119
|
-
export interface IGLTFBufferView extends IGLTFChildRootProperty {
|
120
|
-
buffer: string;
|
121
|
-
byteOffset: number;
|
122
|
-
byteLength: number;
|
123
|
-
byteStride: number;
|
124
|
-
target?: number;
|
125
|
-
}
|
126
|
-
/** @hidden */
|
127
|
-
export interface IGLTFBuffer extends IGLTFChildRootProperty {
|
128
|
-
uri: string;
|
129
|
-
byteLength?: number;
|
130
|
-
type?: string;
|
131
|
-
}
|
132
|
-
/** @hidden */
|
133
|
-
export interface IGLTFShader extends IGLTFChildRootProperty {
|
134
|
-
uri: string;
|
135
|
-
type: EShaderType;
|
136
|
-
}
|
137
|
-
/** @hidden */
|
138
|
-
export interface IGLTFProgram extends IGLTFChildRootProperty {
|
139
|
-
attributes: string[];
|
140
|
-
fragmentShader: string;
|
141
|
-
vertexShader: string;
|
142
|
-
}
|
143
|
-
/** @hidden */
|
144
|
-
export interface IGLTFTechniqueParameter {
|
145
|
-
type: number;
|
146
|
-
count?: number;
|
147
|
-
semantic?: string;
|
148
|
-
node?: string;
|
149
|
-
value?: number | boolean | string | Array<any>;
|
150
|
-
source?: string;
|
151
|
-
babylonValue?: any;
|
152
|
-
}
|
153
|
-
/** @hidden */
|
154
|
-
export interface IGLTFTechniqueCommonProfile {
|
155
|
-
lightingModel: string;
|
156
|
-
texcoordBindings: Object;
|
157
|
-
parameters?: Array<any>;
|
158
|
-
}
|
159
|
-
/** @hidden */
|
160
|
-
export interface IGLTFTechniqueStatesFunctions {
|
161
|
-
blendColor?: number[];
|
162
|
-
blendEquationSeparate?: number[];
|
163
|
-
blendFuncSeparate?: number[];
|
164
|
-
colorMask: boolean[];
|
165
|
-
cullFace: number[];
|
166
|
-
}
|
167
|
-
/** @hidden */
|
168
|
-
export interface IGLTFTechniqueStates {
|
169
|
-
enable: number[];
|
170
|
-
functions: IGLTFTechniqueStatesFunctions;
|
171
|
-
}
|
172
|
-
/** @hidden */
|
173
|
-
export interface IGLTFTechnique extends IGLTFChildRootProperty {
|
174
|
-
parameters: {
|
175
|
-
[key: string]: IGLTFTechniqueParameter;
|
176
|
-
};
|
177
|
-
program: string;
|
178
|
-
attributes: {
|
179
|
-
[key: string]: string;
|
180
|
-
};
|
181
|
-
uniforms: {
|
182
|
-
[key: string]: string;
|
183
|
-
};
|
184
|
-
states: IGLTFTechniqueStates;
|
185
|
-
}
|
186
|
-
/** @hidden */
|
187
|
-
export interface IGLTFMaterial extends IGLTFChildRootProperty {
|
188
|
-
technique?: string;
|
189
|
-
values: string[];
|
190
|
-
}
|
191
|
-
/** @hidden */
|
192
|
-
export interface IGLTFMeshPrimitive extends IGLTFProperty {
|
193
|
-
attributes: {
|
194
|
-
[key: string]: string;
|
195
|
-
};
|
196
|
-
indices: string;
|
197
|
-
material: string;
|
198
|
-
mode?: number;
|
199
|
-
}
|
200
|
-
/** @hidden */
|
201
|
-
export interface IGLTFMesh extends IGLTFChildRootProperty {
|
202
|
-
primitives: IGLTFMeshPrimitive[];
|
203
|
-
}
|
204
|
-
/** @hidden */
|
205
|
-
export interface IGLTFImage extends IGLTFChildRootProperty {
|
206
|
-
uri: string;
|
207
|
-
}
|
208
|
-
/** @hidden */
|
209
|
-
export interface IGLTFSampler extends IGLTFChildRootProperty {
|
210
|
-
magFilter?: number;
|
211
|
-
minFilter?: number;
|
212
|
-
wrapS?: number;
|
213
|
-
wrapT?: number;
|
214
|
-
}
|
215
|
-
/** @hidden */
|
216
|
-
export interface IGLTFTexture extends IGLTFChildRootProperty {
|
217
|
-
sampler: string;
|
218
|
-
source: string;
|
219
|
-
format?: ETextureFormat;
|
220
|
-
internalFormat?: ETextureFormat;
|
221
|
-
target?: number;
|
222
|
-
type?: number;
|
223
|
-
babylonTexture?: Texture;
|
224
|
-
}
|
225
|
-
/** @hidden */
|
226
|
-
export interface IGLTFAmbienLight {
|
227
|
-
color?: number[];
|
228
|
-
}
|
229
|
-
/** @hidden */
|
230
|
-
export interface IGLTFDirectionalLight {
|
231
|
-
color?: number[];
|
232
|
-
}
|
233
|
-
/** @hidden */
|
234
|
-
export interface IGLTFPointLight {
|
235
|
-
color?: number[];
|
236
|
-
constantAttenuation?: number;
|
237
|
-
linearAttenuation?: number;
|
238
|
-
quadraticAttenuation?: number;
|
239
|
-
}
|
240
|
-
/** @hidden */
|
241
|
-
export interface IGLTFSpotLight {
|
242
|
-
color?: number[];
|
243
|
-
constantAttenuation?: number;
|
244
|
-
fallOfAngle?: number;
|
245
|
-
fallOffExponent?: number;
|
246
|
-
linearAttenuation?: number;
|
247
|
-
quadraticAttenuation?: number;
|
248
|
-
}
|
249
|
-
/** @hidden */
|
250
|
-
export interface IGLTFLight extends IGLTFChildRootProperty {
|
251
|
-
type: string;
|
252
|
-
}
|
253
|
-
/** @hidden */
|
254
|
-
export interface IGLTFCameraOrthographic {
|
255
|
-
xmag: number;
|
256
|
-
ymag: number;
|
257
|
-
zfar: number;
|
258
|
-
znear: number;
|
259
|
-
}
|
260
|
-
/** @hidden */
|
261
|
-
export interface IGLTFCameraPerspective {
|
262
|
-
aspectRatio: number;
|
263
|
-
yfov: number;
|
264
|
-
zfar: number;
|
265
|
-
znear: number;
|
266
|
-
}
|
267
|
-
/** @hidden */
|
268
|
-
export interface IGLTFCamera extends IGLTFChildRootProperty {
|
269
|
-
type: string;
|
270
|
-
}
|
271
|
-
/** @hidden */
|
272
|
-
export interface IGLTFAnimationChannelTarget {
|
273
|
-
id: string;
|
274
|
-
path: string;
|
275
|
-
}
|
276
|
-
/** @hidden */
|
277
|
-
export interface IGLTFAnimationChannel {
|
278
|
-
sampler: string;
|
279
|
-
target: IGLTFAnimationChannelTarget;
|
280
|
-
}
|
281
|
-
/** @hidden */
|
282
|
-
export interface IGLTFAnimationSampler {
|
283
|
-
input: string;
|
284
|
-
output: string;
|
285
|
-
interpolation?: string;
|
286
|
-
}
|
287
|
-
/** @hidden */
|
288
|
-
export interface IGLTFAnimation extends IGLTFChildRootProperty {
|
289
|
-
channels?: IGLTFAnimationChannel[];
|
290
|
-
parameters?: {
|
291
|
-
[key: string]: string;
|
292
|
-
};
|
293
|
-
samplers?: {
|
294
|
-
[key: string]: IGLTFAnimationSampler;
|
295
|
-
};
|
296
|
-
}
|
297
|
-
/** @hidden */
|
298
|
-
export interface IGLTFNodeInstanceSkin {
|
299
|
-
skeletons: string[];
|
300
|
-
skin: string;
|
301
|
-
meshes: string[];
|
302
|
-
}
|
303
|
-
/** @hidden */
|
304
|
-
export interface IGLTFSkins extends IGLTFChildRootProperty {
|
305
|
-
bindShapeMatrix: number[];
|
306
|
-
inverseBindMatrices: string;
|
307
|
-
jointNames: string[];
|
308
|
-
babylonSkeleton?: Skeleton;
|
309
|
-
}
|
310
|
-
/** @hidden */
|
311
|
-
export interface IGLTFNode extends IGLTFChildRootProperty {
|
312
|
-
camera?: string;
|
313
|
-
children: string[];
|
314
|
-
skin?: string;
|
315
|
-
jointName?: string;
|
316
|
-
light?: string;
|
317
|
-
matrix: number[];
|
318
|
-
mesh?: string;
|
319
|
-
meshes?: string[];
|
320
|
-
rotation?: number[];
|
321
|
-
scale?: number[];
|
322
|
-
translation?: number[];
|
323
|
-
babylonNode?: Node;
|
324
|
-
}
|
325
|
-
/** @hidden */
|
326
|
-
export interface IGLTFScene extends IGLTFChildRootProperty {
|
327
|
-
nodes: string[];
|
328
|
-
}
|
329
|
-
/** @hidden */
|
330
|
-
export interface IGLTFRuntime {
|
331
|
-
extensions: {
|
332
|
-
[key: string]: any;
|
333
|
-
};
|
334
|
-
accessors: {
|
335
|
-
[key: string]: IGLTFAccessor;
|
336
|
-
};
|
337
|
-
buffers: {
|
338
|
-
[key: string]: IGLTFBuffer;
|
339
|
-
};
|
340
|
-
bufferViews: {
|
341
|
-
[key: string]: IGLTFBufferView;
|
342
|
-
};
|
343
|
-
meshes: {
|
344
|
-
[key: string]: IGLTFMesh;
|
345
|
-
};
|
346
|
-
lights: {
|
347
|
-
[key: string]: IGLTFLight;
|
348
|
-
};
|
349
|
-
cameras: {
|
350
|
-
[key: string]: IGLTFCamera;
|
351
|
-
};
|
352
|
-
nodes: {
|
353
|
-
[key: string]: IGLTFNode;
|
354
|
-
};
|
355
|
-
images: {
|
356
|
-
[key: string]: IGLTFImage;
|
357
|
-
};
|
358
|
-
textures: {
|
359
|
-
[key: string]: IGLTFTexture;
|
360
|
-
};
|
361
|
-
shaders: {
|
362
|
-
[key: string]: IGLTFShader;
|
363
|
-
};
|
364
|
-
programs: {
|
365
|
-
[key: string]: IGLTFProgram;
|
366
|
-
};
|
367
|
-
samplers: {
|
368
|
-
[key: string]: IGLTFSampler;
|
369
|
-
};
|
370
|
-
techniques: {
|
371
|
-
[key: string]: IGLTFTechnique;
|
372
|
-
};
|
373
|
-
materials: {
|
374
|
-
[key: string]: IGLTFMaterial;
|
375
|
-
};
|
376
|
-
animations: {
|
377
|
-
[key: string]: IGLTFAnimation;
|
378
|
-
};
|
379
|
-
skins: {
|
380
|
-
[key: string]: IGLTFSkins;
|
381
|
-
};
|
382
|
-
currentScene?: Object;
|
383
|
-
scenes: {
|
384
|
-
[key: string]: IGLTFScene;
|
385
|
-
};
|
386
|
-
extensionsUsed: string[];
|
387
|
-
extensionsRequired?: string[];
|
388
|
-
buffersCount: number;
|
389
|
-
shaderscount: number;
|
390
|
-
scene: Scene;
|
391
|
-
rootUrl: string;
|
392
|
-
loadedBufferCount: number;
|
393
|
-
loadedBufferViews: {
|
394
|
-
[name: string]: ArrayBufferView;
|
395
|
-
};
|
396
|
-
loadedShaderCount: number;
|
397
|
-
importOnlyMeshes: boolean;
|
398
|
-
importMeshesNames?: string[];
|
399
|
-
dummyNodes: Node[];
|
400
|
-
assetContainer: Nullable<AssetContainer>;
|
401
|
-
}
|
402
|
-
/** @hidden */
|
403
|
-
export interface INodeToRoot {
|
404
|
-
bone: Bone;
|
405
|
-
node: IGLTFNode;
|
406
|
-
id: string;
|
407
|
-
}
|
408
|
-
/** @hidden */
|
409
|
-
export interface IJointNode {
|
410
|
-
node: IGLTFNode;
|
411
|
-
id: string;
|
412
|
-
}
|
1
|
+
import type { AssetContainer } from "@babylonjs/core/assetContainer.js";
|
2
|
+
import type { Bone } from "@babylonjs/core/Bones/bone.js";
|
3
|
+
import type { Skeleton } from "@babylonjs/core/Bones/skeleton.js";
|
4
|
+
import type { Texture } from "@babylonjs/core/Materials/Textures/texture.js";
|
5
|
+
import type { Node } from "@babylonjs/core/node.js";
|
6
|
+
import type { Scene } from "@babylonjs/core/scene.js";
|
7
|
+
import type { Nullable } from "@babylonjs/core/types.js";
|
8
|
+
/**
|
9
|
+
* Enums
|
10
|
+
* @hidden
|
11
|
+
*/
|
12
|
+
export declare enum EComponentType {
|
13
|
+
BYTE = 5120,
|
14
|
+
UNSIGNED_BYTE = 5121,
|
15
|
+
SHORT = 5122,
|
16
|
+
UNSIGNED_SHORT = 5123,
|
17
|
+
FLOAT = 5126
|
18
|
+
}
|
19
|
+
/** @hidden */
|
20
|
+
export declare enum EShaderType {
|
21
|
+
FRAGMENT = 35632,
|
22
|
+
VERTEX = 35633
|
23
|
+
}
|
24
|
+
/** @hidden */
|
25
|
+
export declare enum EParameterType {
|
26
|
+
BYTE = 5120,
|
27
|
+
UNSIGNED_BYTE = 5121,
|
28
|
+
SHORT = 5122,
|
29
|
+
UNSIGNED_SHORT = 5123,
|
30
|
+
INT = 5124,
|
31
|
+
UNSIGNED_INT = 5125,
|
32
|
+
FLOAT = 5126,
|
33
|
+
FLOAT_VEC2 = 35664,
|
34
|
+
FLOAT_VEC3 = 35665,
|
35
|
+
FLOAT_VEC4 = 35666,
|
36
|
+
INT_VEC2 = 35667,
|
37
|
+
INT_VEC3 = 35668,
|
38
|
+
INT_VEC4 = 35669,
|
39
|
+
BOOL = 35670,
|
40
|
+
BOOL_VEC2 = 35671,
|
41
|
+
BOOL_VEC3 = 35672,
|
42
|
+
BOOL_VEC4 = 35673,
|
43
|
+
FLOAT_MAT2 = 35674,
|
44
|
+
FLOAT_MAT3 = 35675,
|
45
|
+
FLOAT_MAT4 = 35676,
|
46
|
+
SAMPLER_2D = 35678
|
47
|
+
}
|
48
|
+
/** @hidden */
|
49
|
+
export declare enum ETextureWrapMode {
|
50
|
+
CLAMP_TO_EDGE = 33071,
|
51
|
+
MIRRORED_REPEAT = 33648,
|
52
|
+
REPEAT = 10497
|
53
|
+
}
|
54
|
+
/** @hidden */
|
55
|
+
export declare enum ETextureFilterType {
|
56
|
+
NEAREST = 9728,
|
57
|
+
LINEAR = 9728,
|
58
|
+
NEAREST_MIPMAP_NEAREST = 9984,
|
59
|
+
LINEAR_MIPMAP_NEAREST = 9985,
|
60
|
+
NEAREST_MIPMAP_LINEAR = 9986,
|
61
|
+
LINEAR_MIPMAP_LINEAR = 9987
|
62
|
+
}
|
63
|
+
/** @hidden */
|
64
|
+
export declare enum ETextureFormat {
|
65
|
+
ALPHA = 6406,
|
66
|
+
RGB = 6407,
|
67
|
+
RGBA = 6408,
|
68
|
+
LUMINANCE = 6409,
|
69
|
+
LUMINANCE_ALPHA = 6410
|
70
|
+
}
|
71
|
+
/** @hidden */
|
72
|
+
export declare enum ECullingType {
|
73
|
+
FRONT = 1028,
|
74
|
+
BACK = 1029,
|
75
|
+
FRONT_AND_BACK = 1032
|
76
|
+
}
|
77
|
+
/** @hidden */
|
78
|
+
export declare enum EBlendingFunction {
|
79
|
+
ZERO = 0,
|
80
|
+
ONE = 1,
|
81
|
+
SRC_COLOR = 768,
|
82
|
+
ONE_MINUS_SRC_COLOR = 769,
|
83
|
+
DST_COLOR = 774,
|
84
|
+
ONE_MINUS_DST_COLOR = 775,
|
85
|
+
SRC_ALPHA = 770,
|
86
|
+
ONE_MINUS_SRC_ALPHA = 771,
|
87
|
+
DST_ALPHA = 772,
|
88
|
+
ONE_MINUS_DST_ALPHA = 773,
|
89
|
+
CONSTANT_COLOR = 32769,
|
90
|
+
ONE_MINUS_CONSTANT_COLOR = 32770,
|
91
|
+
CONSTANT_ALPHA = 32771,
|
92
|
+
ONE_MINUS_CONSTANT_ALPHA = 32772,
|
93
|
+
SRC_ALPHA_SATURATE = 776
|
94
|
+
}
|
95
|
+
/** @hidden */
|
96
|
+
export interface IGLTFProperty {
|
97
|
+
extensions?: {
|
98
|
+
[key: string]: any;
|
99
|
+
};
|
100
|
+
extras?: Object;
|
101
|
+
}
|
102
|
+
/** @hidden */
|
103
|
+
export interface IGLTFChildRootProperty extends IGLTFProperty {
|
104
|
+
name?: string;
|
105
|
+
}
|
106
|
+
/** @hidden */
|
107
|
+
export interface IGLTFAccessor extends IGLTFChildRootProperty {
|
108
|
+
bufferView: string;
|
109
|
+
byteOffset: number;
|
110
|
+
byteStride: number;
|
111
|
+
count: number;
|
112
|
+
type: string;
|
113
|
+
componentType: EComponentType;
|
114
|
+
max?: number[];
|
115
|
+
min?: number[];
|
116
|
+
name?: string;
|
117
|
+
}
|
118
|
+
/** @hidden */
|
119
|
+
export interface IGLTFBufferView extends IGLTFChildRootProperty {
|
120
|
+
buffer: string;
|
121
|
+
byteOffset: number;
|
122
|
+
byteLength: number;
|
123
|
+
byteStride: number;
|
124
|
+
target?: number;
|
125
|
+
}
|
126
|
+
/** @hidden */
|
127
|
+
export interface IGLTFBuffer extends IGLTFChildRootProperty {
|
128
|
+
uri: string;
|
129
|
+
byteLength?: number;
|
130
|
+
type?: string;
|
131
|
+
}
|
132
|
+
/** @hidden */
|
133
|
+
export interface IGLTFShader extends IGLTFChildRootProperty {
|
134
|
+
uri: string;
|
135
|
+
type: EShaderType;
|
136
|
+
}
|
137
|
+
/** @hidden */
|
138
|
+
export interface IGLTFProgram extends IGLTFChildRootProperty {
|
139
|
+
attributes: string[];
|
140
|
+
fragmentShader: string;
|
141
|
+
vertexShader: string;
|
142
|
+
}
|
143
|
+
/** @hidden */
|
144
|
+
export interface IGLTFTechniqueParameter {
|
145
|
+
type: number;
|
146
|
+
count?: number;
|
147
|
+
semantic?: string;
|
148
|
+
node?: string;
|
149
|
+
value?: number | boolean | string | Array<any>;
|
150
|
+
source?: string;
|
151
|
+
babylonValue?: any;
|
152
|
+
}
|
153
|
+
/** @hidden */
|
154
|
+
export interface IGLTFTechniqueCommonProfile {
|
155
|
+
lightingModel: string;
|
156
|
+
texcoordBindings: Object;
|
157
|
+
parameters?: Array<any>;
|
158
|
+
}
|
159
|
+
/** @hidden */
|
160
|
+
export interface IGLTFTechniqueStatesFunctions {
|
161
|
+
blendColor?: number[];
|
162
|
+
blendEquationSeparate?: number[];
|
163
|
+
blendFuncSeparate?: number[];
|
164
|
+
colorMask: boolean[];
|
165
|
+
cullFace: number[];
|
166
|
+
}
|
167
|
+
/** @hidden */
|
168
|
+
export interface IGLTFTechniqueStates {
|
169
|
+
enable: number[];
|
170
|
+
functions: IGLTFTechniqueStatesFunctions;
|
171
|
+
}
|
172
|
+
/** @hidden */
|
173
|
+
export interface IGLTFTechnique extends IGLTFChildRootProperty {
|
174
|
+
parameters: {
|
175
|
+
[key: string]: IGLTFTechniqueParameter;
|
176
|
+
};
|
177
|
+
program: string;
|
178
|
+
attributes: {
|
179
|
+
[key: string]: string;
|
180
|
+
};
|
181
|
+
uniforms: {
|
182
|
+
[key: string]: string;
|
183
|
+
};
|
184
|
+
states: IGLTFTechniqueStates;
|
185
|
+
}
|
186
|
+
/** @hidden */
|
187
|
+
export interface IGLTFMaterial extends IGLTFChildRootProperty {
|
188
|
+
technique?: string;
|
189
|
+
values: string[];
|
190
|
+
}
|
191
|
+
/** @hidden */
|
192
|
+
export interface IGLTFMeshPrimitive extends IGLTFProperty {
|
193
|
+
attributes: {
|
194
|
+
[key: string]: string;
|
195
|
+
};
|
196
|
+
indices: string;
|
197
|
+
material: string;
|
198
|
+
mode?: number;
|
199
|
+
}
|
200
|
+
/** @hidden */
|
201
|
+
export interface IGLTFMesh extends IGLTFChildRootProperty {
|
202
|
+
primitives: IGLTFMeshPrimitive[];
|
203
|
+
}
|
204
|
+
/** @hidden */
|
205
|
+
export interface IGLTFImage extends IGLTFChildRootProperty {
|
206
|
+
uri: string;
|
207
|
+
}
|
208
|
+
/** @hidden */
|
209
|
+
export interface IGLTFSampler extends IGLTFChildRootProperty {
|
210
|
+
magFilter?: number;
|
211
|
+
minFilter?: number;
|
212
|
+
wrapS?: number;
|
213
|
+
wrapT?: number;
|
214
|
+
}
|
215
|
+
/** @hidden */
|
216
|
+
export interface IGLTFTexture extends IGLTFChildRootProperty {
|
217
|
+
sampler: string;
|
218
|
+
source: string;
|
219
|
+
format?: ETextureFormat;
|
220
|
+
internalFormat?: ETextureFormat;
|
221
|
+
target?: number;
|
222
|
+
type?: number;
|
223
|
+
babylonTexture?: Texture;
|
224
|
+
}
|
225
|
+
/** @hidden */
|
226
|
+
export interface IGLTFAmbienLight {
|
227
|
+
color?: number[];
|
228
|
+
}
|
229
|
+
/** @hidden */
|
230
|
+
export interface IGLTFDirectionalLight {
|
231
|
+
color?: number[];
|
232
|
+
}
|
233
|
+
/** @hidden */
|
234
|
+
export interface IGLTFPointLight {
|
235
|
+
color?: number[];
|
236
|
+
constantAttenuation?: number;
|
237
|
+
linearAttenuation?: number;
|
238
|
+
quadraticAttenuation?: number;
|
239
|
+
}
|
240
|
+
/** @hidden */
|
241
|
+
export interface IGLTFSpotLight {
|
242
|
+
color?: number[];
|
243
|
+
constantAttenuation?: number;
|
244
|
+
fallOfAngle?: number;
|
245
|
+
fallOffExponent?: number;
|
246
|
+
linearAttenuation?: number;
|
247
|
+
quadraticAttenuation?: number;
|
248
|
+
}
|
249
|
+
/** @hidden */
|
250
|
+
export interface IGLTFLight extends IGLTFChildRootProperty {
|
251
|
+
type: string;
|
252
|
+
}
|
253
|
+
/** @hidden */
|
254
|
+
export interface IGLTFCameraOrthographic {
|
255
|
+
xmag: number;
|
256
|
+
ymag: number;
|
257
|
+
zfar: number;
|
258
|
+
znear: number;
|
259
|
+
}
|
260
|
+
/** @hidden */
|
261
|
+
export interface IGLTFCameraPerspective {
|
262
|
+
aspectRatio: number;
|
263
|
+
yfov: number;
|
264
|
+
zfar: number;
|
265
|
+
znear: number;
|
266
|
+
}
|
267
|
+
/** @hidden */
|
268
|
+
export interface IGLTFCamera extends IGLTFChildRootProperty {
|
269
|
+
type: string;
|
270
|
+
}
|
271
|
+
/** @hidden */
|
272
|
+
export interface IGLTFAnimationChannelTarget {
|
273
|
+
id: string;
|
274
|
+
path: string;
|
275
|
+
}
|
276
|
+
/** @hidden */
|
277
|
+
export interface IGLTFAnimationChannel {
|
278
|
+
sampler: string;
|
279
|
+
target: IGLTFAnimationChannelTarget;
|
280
|
+
}
|
281
|
+
/** @hidden */
|
282
|
+
export interface IGLTFAnimationSampler {
|
283
|
+
input: string;
|
284
|
+
output: string;
|
285
|
+
interpolation?: string;
|
286
|
+
}
|
287
|
+
/** @hidden */
|
288
|
+
export interface IGLTFAnimation extends IGLTFChildRootProperty {
|
289
|
+
channels?: IGLTFAnimationChannel[];
|
290
|
+
parameters?: {
|
291
|
+
[key: string]: string;
|
292
|
+
};
|
293
|
+
samplers?: {
|
294
|
+
[key: string]: IGLTFAnimationSampler;
|
295
|
+
};
|
296
|
+
}
|
297
|
+
/** @hidden */
|
298
|
+
export interface IGLTFNodeInstanceSkin {
|
299
|
+
skeletons: string[];
|
300
|
+
skin: string;
|
301
|
+
meshes: string[];
|
302
|
+
}
|
303
|
+
/** @hidden */
|
304
|
+
export interface IGLTFSkins extends IGLTFChildRootProperty {
|
305
|
+
bindShapeMatrix: number[];
|
306
|
+
inverseBindMatrices: string;
|
307
|
+
jointNames: string[];
|
308
|
+
babylonSkeleton?: Skeleton;
|
309
|
+
}
|
310
|
+
/** @hidden */
|
311
|
+
export interface IGLTFNode extends IGLTFChildRootProperty {
|
312
|
+
camera?: string;
|
313
|
+
children: string[];
|
314
|
+
skin?: string;
|
315
|
+
jointName?: string;
|
316
|
+
light?: string;
|
317
|
+
matrix: number[];
|
318
|
+
mesh?: string;
|
319
|
+
meshes?: string[];
|
320
|
+
rotation?: number[];
|
321
|
+
scale?: number[];
|
322
|
+
translation?: number[];
|
323
|
+
babylonNode?: Node;
|
324
|
+
}
|
325
|
+
/** @hidden */
|
326
|
+
export interface IGLTFScene extends IGLTFChildRootProperty {
|
327
|
+
nodes: string[];
|
328
|
+
}
|
329
|
+
/** @hidden */
|
330
|
+
export interface IGLTFRuntime {
|
331
|
+
extensions: {
|
332
|
+
[key: string]: any;
|
333
|
+
};
|
334
|
+
accessors: {
|
335
|
+
[key: string]: IGLTFAccessor;
|
336
|
+
};
|
337
|
+
buffers: {
|
338
|
+
[key: string]: IGLTFBuffer;
|
339
|
+
};
|
340
|
+
bufferViews: {
|
341
|
+
[key: string]: IGLTFBufferView;
|
342
|
+
};
|
343
|
+
meshes: {
|
344
|
+
[key: string]: IGLTFMesh;
|
345
|
+
};
|
346
|
+
lights: {
|
347
|
+
[key: string]: IGLTFLight;
|
348
|
+
};
|
349
|
+
cameras: {
|
350
|
+
[key: string]: IGLTFCamera;
|
351
|
+
};
|
352
|
+
nodes: {
|
353
|
+
[key: string]: IGLTFNode;
|
354
|
+
};
|
355
|
+
images: {
|
356
|
+
[key: string]: IGLTFImage;
|
357
|
+
};
|
358
|
+
textures: {
|
359
|
+
[key: string]: IGLTFTexture;
|
360
|
+
};
|
361
|
+
shaders: {
|
362
|
+
[key: string]: IGLTFShader;
|
363
|
+
};
|
364
|
+
programs: {
|
365
|
+
[key: string]: IGLTFProgram;
|
366
|
+
};
|
367
|
+
samplers: {
|
368
|
+
[key: string]: IGLTFSampler;
|
369
|
+
};
|
370
|
+
techniques: {
|
371
|
+
[key: string]: IGLTFTechnique;
|
372
|
+
};
|
373
|
+
materials: {
|
374
|
+
[key: string]: IGLTFMaterial;
|
375
|
+
};
|
376
|
+
animations: {
|
377
|
+
[key: string]: IGLTFAnimation;
|
378
|
+
};
|
379
|
+
skins: {
|
380
|
+
[key: string]: IGLTFSkins;
|
381
|
+
};
|
382
|
+
currentScene?: Object;
|
383
|
+
scenes: {
|
384
|
+
[key: string]: IGLTFScene;
|
385
|
+
};
|
386
|
+
extensionsUsed: string[];
|
387
|
+
extensionsRequired?: string[];
|
388
|
+
buffersCount: number;
|
389
|
+
shaderscount: number;
|
390
|
+
scene: Scene;
|
391
|
+
rootUrl: string;
|
392
|
+
loadedBufferCount: number;
|
393
|
+
loadedBufferViews: {
|
394
|
+
[name: string]: ArrayBufferView;
|
395
|
+
};
|
396
|
+
loadedShaderCount: number;
|
397
|
+
importOnlyMeshes: boolean;
|
398
|
+
importMeshesNames?: string[];
|
399
|
+
dummyNodes: Node[];
|
400
|
+
assetContainer: Nullable<AssetContainer>;
|
401
|
+
}
|
402
|
+
/** @hidden */
|
403
|
+
export interface INodeToRoot {
|
404
|
+
bone: Bone;
|
405
|
+
node: IGLTFNode;
|
406
|
+
id: string;
|
407
|
+
}
|
408
|
+
/** @hidden */
|
409
|
+
export interface IJointNode {
|
410
|
+
node: IGLTFNode;
|
411
|
+
id: string;
|
412
|
+
}
|