@babylonjs/loaders 5.0.0-beta.6 → 5.0.0-beta.8-snapshot

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. package/package.json +20 -198
  2. package/OBJ/index.d.ts +0 -4
  3. package/OBJ/index.js +0 -5
  4. package/OBJ/index.js.map +0 -1
  5. package/OBJ/mtlFileLoader.d.ts +0 -40
  6. package/OBJ/mtlFileLoader.js +0 -222
  7. package/OBJ/mtlFileLoader.js.map +0 -1
  8. package/OBJ/objFileLoader.d.ts +0 -133
  9. package/OBJ/objFileLoader.js +0 -301
  10. package/OBJ/objFileLoader.js.map +0 -1
  11. package/OBJ/objLoadingOptions.d.ts +0 -43
  12. package/OBJ/objLoadingOptions.js +0 -2
  13. package/OBJ/objLoadingOptions.js.map +0 -1
  14. package/OBJ/solidParser.d.ts +0 -153
  15. package/OBJ/solidParser.js +0 -700
  16. package/OBJ/solidParser.js.map +0 -1
  17. package/STL/index.d.ts +0 -1
  18. package/STL/index.js +0 -2
  19. package/STL/index.js.map +0 -1
  20. package/STL/stlFileLoader.d.ts +0 -71
  21. package/STL/stlFileLoader.js +0 -240
  22. package/STL/stlFileLoader.js.map +0 -1
  23. package/glTF/1.0/glTFBinaryExtension.d.ts +0 -13
  24. package/glTF/1.0/glTFBinaryExtension.js +0 -62
  25. package/glTF/1.0/glTFBinaryExtension.js.map +0 -1
  26. package/glTF/1.0/glTFLoader.d.ts +0 -106
  27. package/glTF/1.0/glTFLoader.js +0 -1697
  28. package/glTF/1.0/glTFLoader.js.map +0 -1
  29. package/glTF/1.0/glTFLoaderInterfaces.d.ts +0 -412
  30. package/glTF/1.0/glTFLoaderInterfaces.js +0 -96
  31. package/glTF/1.0/glTFLoaderInterfaces.js.map +0 -1
  32. package/glTF/1.0/glTFLoaderUtils.d.ts +0 -62
  33. package/glTF/1.0/glTFLoaderUtils.js +0 -233
  34. package/glTF/1.0/glTFLoaderUtils.js.map +0 -1
  35. package/glTF/1.0/glTFMaterialsCommonExtension.d.ts +0 -10
  36. package/glTF/1.0/glTFMaterialsCommonExtension.js +0 -128
  37. package/glTF/1.0/glTFMaterialsCommonExtension.js.map +0 -1
  38. package/glTF/1.0/index.d.ts +0 -5
  39. package/glTF/1.0/index.js +0 -6
  40. package/glTF/1.0/index.js.map +0 -1
  41. package/glTF/2.0/Extensions/EXT_lights_image_based.d.ts +0 -36
  42. package/glTF/2.0/Extensions/EXT_lights_image_based.js +0 -111
  43. package/glTF/2.0/Extensions/EXT_lights_image_based.js.map +0 -1
  44. package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.d.ts +0 -27
  45. package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js +0 -80
  46. package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js.map +0 -1
  47. package/glTF/2.0/Extensions/EXT_meshopt_compression.d.ts +0 -27
  48. package/glTF/2.0/Extensions/EXT_meshopt_compression.js +0 -43
  49. package/glTF/2.0/Extensions/EXT_meshopt_compression.js.map +0 -1
  50. package/glTF/2.0/Extensions/EXT_texture_webp.d.ts +0 -21
  51. package/glTF/2.0/Extensions/EXT_texture_webp.js +0 -33
  52. package/glTF/2.0/Extensions/EXT_texture_webp.js.map +0 -1
  53. package/glTF/2.0/Extensions/ExtrasAsMetadata.d.ts +0 -32
  54. package/glTF/2.0/Extensions/ExtrasAsMetadata.js +0 -56
  55. package/glTF/2.0/Extensions/ExtrasAsMetadata.js.map +0 -1
  56. package/glTF/2.0/Extensions/KHR_draco_mesh_compression.d.ts +0 -31
  57. package/glTF/2.0/Extensions/KHR_draco_mesh_compression.js +0 -102
  58. package/glTF/2.0/Extensions/KHR_draco_mesh_compression.js.map +0 -1
  59. package/glTF/2.0/Extensions/KHR_lights_punctual.d.ts +0 -28
  60. package/glTF/2.0/Extensions/KHR_lights_punctual.js +0 -82
  61. package/glTF/2.0/Extensions/KHR_lights_punctual.js.map +0 -1
  62. package/glTF/2.0/Extensions/KHR_materials_clearcoat.d.ts +0 -31
  63. package/glTF/2.0/Extensions/KHR_materials_clearcoat.js +0 -87
  64. package/glTF/2.0/Extensions/KHR_materials_clearcoat.js.map +0 -1
  65. package/glTF/2.0/Extensions/KHR_materials_emissive_strength.d.ts +0 -30
  66. package/glTF/2.0/Extensions/KHR_materials_emissive_strength.js +0 -46
  67. package/glTF/2.0/Extensions/KHR_materials_emissive_strength.js.map +0 -1
  68. package/glTF/2.0/Extensions/KHR_materials_ior.d.ts +0 -34
  69. package/glTF/2.0/Extensions/KHR_materials_ior.js +0 -55
  70. package/glTF/2.0/Extensions/KHR_materials_ior.js.map +0 -1
  71. package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.d.ts +0 -30
  72. package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js +0 -73
  73. package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js.map +0 -1
  74. package/glTF/2.0/Extensions/KHR_materials_sheen.d.ts +0 -31
  75. package/glTF/2.0/Extensions/KHR_materials_sheen.js +0 -77
  76. package/glTF/2.0/Extensions/KHR_materials_sheen.js.map +0 -1
  77. package/glTF/2.0/Extensions/KHR_materials_specular.d.ts +0 -30
  78. package/glTF/2.0/Extensions/KHR_materials_specular.js +0 -67
  79. package/glTF/2.0/Extensions/KHR_materials_specular.js.map +0 -1
  80. package/glTF/2.0/Extensions/KHR_materials_translucency.d.ts +0 -31
  81. package/glTF/2.0/Extensions/KHR_materials_translucency.js +0 -77
  82. package/glTF/2.0/Extensions/KHR_materials_translucency.js.map +0 -1
  83. package/glTF/2.0/Extensions/KHR_materials_transmission.d.ts +0 -30
  84. package/glTF/2.0/Extensions/KHR_materials_transmission.js +0 -278
  85. package/glTF/2.0/Extensions/KHR_materials_transmission.js.map +0 -1
  86. package/glTF/2.0/Extensions/KHR_materials_unlit.d.ts +0 -30
  87. package/glTF/2.0/Extensions/KHR_materials_unlit.js +0 -66
  88. package/glTF/2.0/Extensions/KHR_materials_unlit.js.map +0 -1
  89. package/glTF/2.0/Extensions/KHR_materials_variants.d.ts +0 -76
  90. package/glTF/2.0/Extensions/KHR_materials_variants.js +0 -244
  91. package/glTF/2.0/Extensions/KHR_materials_variants.js.map +0 -1
  92. package/glTF/2.0/Extensions/KHR_materials_volume.d.ts +0 -31
  93. package/glTF/2.0/Extensions/KHR_materials_volume.js +0 -79
  94. package/glTF/2.0/Extensions/KHR_materials_volume.js.map +0 -1
  95. package/glTF/2.0/Extensions/KHR_mesh_quantization.d.ts +0 -19
  96. package/glTF/2.0/Extensions/KHR_mesh_quantization.js +0 -22
  97. package/glTF/2.0/Extensions/KHR_mesh_quantization.js.map +0 -1
  98. package/glTF/2.0/Extensions/KHR_texture_basisu.d.ts +0 -21
  99. package/glTF/2.0/Extensions/KHR_texture_basisu.js +0 -33
  100. package/glTF/2.0/Extensions/KHR_texture_basisu.js.map +0 -1
  101. package/glTF/2.0/Extensions/KHR_texture_transform.d.ts +0 -25
  102. package/glTF/2.0/Extensions/KHR_texture_transform.js +0 -54
  103. package/glTF/2.0/Extensions/KHR_texture_transform.js.map +0 -1
  104. package/glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts +0 -29
  105. package/glTF/2.0/Extensions/KHR_xmp_json_ld.js +0 -47
  106. package/glTF/2.0/Extensions/KHR_xmp_json_ld.js.map +0 -1
  107. package/glTF/2.0/Extensions/MSFT_audio_emitter.d.ts +0 -38
  108. package/glTF/2.0/Extensions/MSFT_audio_emitter.js +0 -217
  109. package/glTF/2.0/Extensions/MSFT_audio_emitter.js.map +0 -1
  110. package/glTF/2.0/Extensions/MSFT_lod.d.ts +0 -75
  111. package/glTF/2.0/Extensions/MSFT_lod.js +0 -334
  112. package/glTF/2.0/Extensions/MSFT_lod.js.map +0 -1
  113. package/glTF/2.0/Extensions/MSFT_minecraftMesh.d.ts +0 -14
  114. package/glTF/2.0/Extensions/MSFT_minecraftMesh.js +0 -37
  115. package/glTF/2.0/Extensions/MSFT_minecraftMesh.js.map +0 -1
  116. package/glTF/2.0/Extensions/MSFT_sRGBFactors.d.ts +0 -14
  117. package/glTF/2.0/Extensions/MSFT_sRGBFactors.js +0 -37
  118. package/glTF/2.0/Extensions/MSFT_sRGBFactors.js.map +0 -1
  119. package/glTF/2.0/Extensions/index.d.ts +0 -26
  120. package/glTF/2.0/Extensions/index.js +0 -27
  121. package/glTF/2.0/Extensions/index.js.map +0 -1
  122. package/glTF/2.0/glTFLoader.d.ts +0 -355
  123. package/glTF/2.0/glTFLoader.js +0 -2184
  124. package/glTF/2.0/glTFLoader.js.map +0 -1
  125. package/glTF/2.0/glTFLoaderExtension.d.ts +0 -152
  126. package/glTF/2.0/glTFLoaderExtension.js +0 -2
  127. package/glTF/2.0/glTFLoaderExtension.js.map +0 -1
  128. package/glTF/2.0/glTFLoaderInterfaces.d.ts +0 -212
  129. package/glTF/2.0/glTFLoaderInterfaces.js +0 -2
  130. package/glTF/2.0/glTFLoaderInterfaces.js.map +0 -1
  131. package/glTF/2.0/index.d.ts +0 -4
  132. package/glTF/2.0/index.js +0 -5
  133. package/glTF/2.0/index.js.map +0 -1
  134. package/glTF/glTFFileLoader.d.ts +0 -364
  135. package/glTF/glTFFileLoader.js +0 -865
  136. package/glTF/glTFFileLoader.js.map +0 -1
  137. package/glTF/glTFValidation.d.ts +0 -29
  138. package/glTF/glTFValidation.js +0 -122
  139. package/glTF/glTFValidation.js.map +0 -1
  140. package/glTF/index.d.ts +0 -5
  141. package/glTF/index.js +0 -6
  142. package/glTF/index.js.map +0 -1
  143. package/index.d.ts +0 -3
  144. package/index.js.map +0 -1
  145. package/legacy/legacy-glTF.d.ts +0 -2
  146. package/legacy/legacy-glTF.js +0 -19
  147. package/legacy/legacy-glTF.js.map +0 -1
  148. package/legacy/legacy-glTF1.d.ts +0 -2
  149. package/legacy/legacy-glTF1.js +0 -15
  150. package/legacy/legacy-glTF1.js.map +0 -1
  151. package/legacy/legacy-glTF1FileLoader.d.ts +0 -2
  152. package/legacy/legacy-glTF1FileLoader.js +0 -3
  153. package/legacy/legacy-glTF1FileLoader.js.map +0 -1
  154. package/legacy/legacy-glTF2.d.ts +0 -2
  155. package/legacy/legacy-glTF2.js +0 -33
  156. package/legacy/legacy-glTF2.js.map +0 -1
  157. package/legacy/legacy-glTF2FileLoader.d.ts +0 -2
  158. package/legacy/legacy-glTF2FileLoader.js +0 -3
  159. package/legacy/legacy-glTF2FileLoader.js.map +0 -1
  160. package/legacy/legacy-glTFFileLoader.d.ts +0 -3
  161. package/legacy/legacy-glTFFileLoader.js +0 -4
  162. package/legacy/legacy-glTFFileLoader.js.map +0 -1
  163. package/legacy/legacy-objFileLoader.d.ts +0 -1
  164. package/legacy/legacy-objFileLoader.js +0 -13
  165. package/legacy/legacy-objFileLoader.js.map +0 -1
  166. package/legacy/legacy-stlFileLoader.d.ts +0 -1
  167. package/legacy/legacy-stlFileLoader.js +0 -13
  168. package/legacy/legacy-stlFileLoader.js.map +0 -1
  169. package/legacy/legacy.d.ts +0 -6
  170. package/legacy/legacy.js +0 -7
  171. package/legacy/legacy.js.map +0 -1
  172. package/readme.md +0 -24
@@ -1,412 +0,0 @@
1
- import { AssetContainer } from "@babylonjs/core/assetContainer";
2
- import { Bone } from "@babylonjs/core/Bones/bone";
3
- import { Skeleton } from "@babylonjs/core/Bones/skeleton";
4
- import { Texture } from "@babylonjs/core/Materials/Textures/texture";
5
- import { Node } from "@babylonjs/core/node";
6
- import { Scene } from "@babylonjs/core/scene";
7
- import { Nullable } from "@babylonjs/core/types";
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,96 +0,0 @@
1
- /**
2
- * Enums
3
- * @hidden
4
- */
5
- export var EComponentType;
6
- (function (EComponentType) {
7
- EComponentType[EComponentType["BYTE"] = 5120] = "BYTE";
8
- EComponentType[EComponentType["UNSIGNED_BYTE"] = 5121] = "UNSIGNED_BYTE";
9
- EComponentType[EComponentType["SHORT"] = 5122] = "SHORT";
10
- EComponentType[EComponentType["UNSIGNED_SHORT"] = 5123] = "UNSIGNED_SHORT";
11
- EComponentType[EComponentType["FLOAT"] = 5126] = "FLOAT";
12
- })(EComponentType || (EComponentType = {}));
13
- /** @hidden */
14
- export var EShaderType;
15
- (function (EShaderType) {
16
- EShaderType[EShaderType["FRAGMENT"] = 35632] = "FRAGMENT";
17
- EShaderType[EShaderType["VERTEX"] = 35633] = "VERTEX";
18
- })(EShaderType || (EShaderType = {}));
19
- /** @hidden */
20
- export var EParameterType;
21
- (function (EParameterType) {
22
- EParameterType[EParameterType["BYTE"] = 5120] = "BYTE";
23
- EParameterType[EParameterType["UNSIGNED_BYTE"] = 5121] = "UNSIGNED_BYTE";
24
- EParameterType[EParameterType["SHORT"] = 5122] = "SHORT";
25
- EParameterType[EParameterType["UNSIGNED_SHORT"] = 5123] = "UNSIGNED_SHORT";
26
- EParameterType[EParameterType["INT"] = 5124] = "INT";
27
- EParameterType[EParameterType["UNSIGNED_INT"] = 5125] = "UNSIGNED_INT";
28
- EParameterType[EParameterType["FLOAT"] = 5126] = "FLOAT";
29
- EParameterType[EParameterType["FLOAT_VEC2"] = 35664] = "FLOAT_VEC2";
30
- EParameterType[EParameterType["FLOAT_VEC3"] = 35665] = "FLOAT_VEC3";
31
- EParameterType[EParameterType["FLOAT_VEC4"] = 35666] = "FLOAT_VEC4";
32
- EParameterType[EParameterType["INT_VEC2"] = 35667] = "INT_VEC2";
33
- EParameterType[EParameterType["INT_VEC3"] = 35668] = "INT_VEC3";
34
- EParameterType[EParameterType["INT_VEC4"] = 35669] = "INT_VEC4";
35
- EParameterType[EParameterType["BOOL"] = 35670] = "BOOL";
36
- EParameterType[EParameterType["BOOL_VEC2"] = 35671] = "BOOL_VEC2";
37
- EParameterType[EParameterType["BOOL_VEC3"] = 35672] = "BOOL_VEC3";
38
- EParameterType[EParameterType["BOOL_VEC4"] = 35673] = "BOOL_VEC4";
39
- EParameterType[EParameterType["FLOAT_MAT2"] = 35674] = "FLOAT_MAT2";
40
- EParameterType[EParameterType["FLOAT_MAT3"] = 35675] = "FLOAT_MAT3";
41
- EParameterType[EParameterType["FLOAT_MAT4"] = 35676] = "FLOAT_MAT4";
42
- EParameterType[EParameterType["SAMPLER_2D"] = 35678] = "SAMPLER_2D";
43
- })(EParameterType || (EParameterType = {}));
44
- /** @hidden */
45
- export var ETextureWrapMode;
46
- (function (ETextureWrapMode) {
47
- ETextureWrapMode[ETextureWrapMode["CLAMP_TO_EDGE"] = 33071] = "CLAMP_TO_EDGE";
48
- ETextureWrapMode[ETextureWrapMode["MIRRORED_REPEAT"] = 33648] = "MIRRORED_REPEAT";
49
- ETextureWrapMode[ETextureWrapMode["REPEAT"] = 10497] = "REPEAT";
50
- })(ETextureWrapMode || (ETextureWrapMode = {}));
51
- /** @hidden */
52
- export var ETextureFilterType;
53
- (function (ETextureFilterType) {
54
- ETextureFilterType[ETextureFilterType["NEAREST"] = 9728] = "NEAREST";
55
- ETextureFilterType[ETextureFilterType["LINEAR"] = 9728] = "LINEAR";
56
- ETextureFilterType[ETextureFilterType["NEAREST_MIPMAP_NEAREST"] = 9984] = "NEAREST_MIPMAP_NEAREST";
57
- ETextureFilterType[ETextureFilterType["LINEAR_MIPMAP_NEAREST"] = 9985] = "LINEAR_MIPMAP_NEAREST";
58
- ETextureFilterType[ETextureFilterType["NEAREST_MIPMAP_LINEAR"] = 9986] = "NEAREST_MIPMAP_LINEAR";
59
- ETextureFilterType[ETextureFilterType["LINEAR_MIPMAP_LINEAR"] = 9987] = "LINEAR_MIPMAP_LINEAR";
60
- })(ETextureFilterType || (ETextureFilterType = {}));
61
- /** @hidden */
62
- export var ETextureFormat;
63
- (function (ETextureFormat) {
64
- ETextureFormat[ETextureFormat["ALPHA"] = 6406] = "ALPHA";
65
- ETextureFormat[ETextureFormat["RGB"] = 6407] = "RGB";
66
- ETextureFormat[ETextureFormat["RGBA"] = 6408] = "RGBA";
67
- ETextureFormat[ETextureFormat["LUMINANCE"] = 6409] = "LUMINANCE";
68
- ETextureFormat[ETextureFormat["LUMINANCE_ALPHA"] = 6410] = "LUMINANCE_ALPHA";
69
- })(ETextureFormat || (ETextureFormat = {}));
70
- /** @hidden */
71
- export var ECullingType;
72
- (function (ECullingType) {
73
- ECullingType[ECullingType["FRONT"] = 1028] = "FRONT";
74
- ECullingType[ECullingType["BACK"] = 1029] = "BACK";
75
- ECullingType[ECullingType["FRONT_AND_BACK"] = 1032] = "FRONT_AND_BACK";
76
- })(ECullingType || (ECullingType = {}));
77
- /** @hidden */
78
- export var EBlendingFunction;
79
- (function (EBlendingFunction) {
80
- EBlendingFunction[EBlendingFunction["ZERO"] = 0] = "ZERO";
81
- EBlendingFunction[EBlendingFunction["ONE"] = 1] = "ONE";
82
- EBlendingFunction[EBlendingFunction["SRC_COLOR"] = 768] = "SRC_COLOR";
83
- EBlendingFunction[EBlendingFunction["ONE_MINUS_SRC_COLOR"] = 769] = "ONE_MINUS_SRC_COLOR";
84
- EBlendingFunction[EBlendingFunction["DST_COLOR"] = 774] = "DST_COLOR";
85
- EBlendingFunction[EBlendingFunction["ONE_MINUS_DST_COLOR"] = 775] = "ONE_MINUS_DST_COLOR";
86
- EBlendingFunction[EBlendingFunction["SRC_ALPHA"] = 770] = "SRC_ALPHA";
87
- EBlendingFunction[EBlendingFunction["ONE_MINUS_SRC_ALPHA"] = 771] = "ONE_MINUS_SRC_ALPHA";
88
- EBlendingFunction[EBlendingFunction["DST_ALPHA"] = 772] = "DST_ALPHA";
89
- EBlendingFunction[EBlendingFunction["ONE_MINUS_DST_ALPHA"] = 773] = "ONE_MINUS_DST_ALPHA";
90
- EBlendingFunction[EBlendingFunction["CONSTANT_COLOR"] = 32769] = "CONSTANT_COLOR";
91
- EBlendingFunction[EBlendingFunction["ONE_MINUS_CONSTANT_COLOR"] = 32770] = "ONE_MINUS_CONSTANT_COLOR";
92
- EBlendingFunction[EBlendingFunction["CONSTANT_ALPHA"] = 32771] = "CONSTANT_ALPHA";
93
- EBlendingFunction[EBlendingFunction["ONE_MINUS_CONSTANT_ALPHA"] = 32772] = "ONE_MINUS_CONSTANT_ALPHA";
94
- EBlendingFunction[EBlendingFunction["SRC_ALPHA_SATURATE"] = 776] = "SRC_ALPHA_SATURATE";
95
- })(EBlendingFunction || (EBlendingFunction = {}));
96
- //# sourceMappingURL=glTFLoaderInterfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"glTFLoaderInterfaces.js","sourceRoot":"","sources":["../../../../sourceES6/loaders/src/glTF/1.0/glTFLoaderInterfaces.ts"],"names":[],"mappings":"AAQA;;;EAGE;AACF,MAAM,CAAN,IAAY,cAMX;AAND,WAAY,cAAc;IACtB,sDAAW,CAAA;IACX,wEAAoB,CAAA;IACpB,wDAAY,CAAA;IACZ,0EAAqB,CAAA;IACrB,wDAAY,CAAA;AAChB,CAAC,EANW,cAAc,KAAd,cAAc,QAMzB;AAED,cAAc;AACd,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,yDAAgB,CAAA;IAChB,qDAAc,CAAA;AAClB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB;AAED,cAAc;AACd,MAAM,CAAN,IAAY,cAsBX;AAtBD,WAAY,cAAc;IACtB,sDAAW,CAAA;IACX,wEAAoB,CAAA;IACpB,wDAAY,CAAA;IACZ,0EAAqB,CAAA;IACrB,oDAAU,CAAA;IACV,sEAAmB,CAAA;IACnB,wDAAY,CAAA;IACZ,mEAAkB,CAAA;IAClB,mEAAkB,CAAA;IAClB,mEAAkB,CAAA;IAClB,+DAAgB,CAAA;IAChB,+DAAgB,CAAA;IAChB,+DAAgB,CAAA;IAChB,uDAAY,CAAA;IACZ,iEAAiB,CAAA;IACjB,iEAAiB,CAAA;IACjB,iEAAiB,CAAA;IACjB,mEAAkB,CAAA;IAClB,mEAAkB,CAAA;IAClB,mEAAkB,CAAA;IAClB,mEAAkB,CAAA;AACtB,CAAC,EAtBW,cAAc,KAAd,cAAc,QAsBzB;AAED,cAAc;AACd,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IACxB,6EAAqB,CAAA;IACrB,iFAAuB,CAAA;IACvB,+DAAc,CAAA;AAClB,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B;AAED,cAAc;AACd,MAAM,CAAN,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC1B,oEAAc,CAAA;IACd,kEAAa,CAAA;IACb,kGAA6B,CAAA;IAC7B,gGAA4B,CAAA;IAC5B,gGAA4B,CAAA;IAC5B,8FAA2B,CAAA;AAC/B,CAAC,EAPW,kBAAkB,KAAlB,kBAAkB,QAO7B;AAED,cAAc;AACd,MAAM,CAAN,IAAY,cAMX;AAND,WAAY,cAAc;IACtB,wDAAY,CAAA;IACZ,oDAAU,CAAA;IACV,sDAAW,CAAA;IACX,gEAAgB,CAAA;IAChB,4EAAsB,CAAA;AAC1B,CAAC,EANW,cAAc,KAAd,cAAc,QAMzB;AAED,cAAc;AACd,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,oDAAY,CAAA;IACZ,kDAAW,CAAA;IACX,sEAAqB,CAAA;AACzB,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB;AAED,cAAc;AACd,MAAM,CAAN,IAAY,iBAgBX;AAhBD,WAAY,iBAAiB;IACzB,yDAAQ,CAAA;IACR,uDAAO,CAAA;IACP,qEAAe,CAAA;IACf,yFAAyB,CAAA;IACzB,qEAAe,CAAA;IACf,yFAAyB,CAAA;IACzB,qEAAe,CAAA;IACf,yFAAyB,CAAA;IACzB,qEAAe,CAAA;IACf,yFAAyB,CAAA;IACzB,iFAAsB,CAAA;IACtB,qGAAgC,CAAA;IAChC,iFAAsB,CAAA;IACtB,qGAAgC,CAAA;IAChC,uFAAwB,CAAA;AAC5B,CAAC,EAhBW,iBAAiB,KAAjB,iBAAiB,QAgB5B","sourcesContent":["import { AssetContainer } from \"@babylonjs/core/assetContainer\";\r\nimport { Bone } from \"@babylonjs/core/Bones/bone\";\r\nimport { Skeleton } from \"@babylonjs/core/Bones/skeleton\";\r\nimport { Texture } from \"@babylonjs/core/Materials/Textures/texture\";\r\nimport { Node } from \"@babylonjs/core/node\";\r\nimport { Scene } from \"@babylonjs/core/scene\";\r\nimport { Nullable } from \"@babylonjs/core/types\";\r\n\r\n/**\r\n* Enums\r\n* @hidden\r\n*/\r\nexport enum EComponentType {\r\n BYTE = 5120,\r\n UNSIGNED_BYTE = 5121,\r\n SHORT = 5122,\r\n UNSIGNED_SHORT = 5123,\r\n FLOAT = 5126\r\n}\r\n\r\n/** @hidden */\r\nexport enum EShaderType {\r\n FRAGMENT = 35632,\r\n VERTEX = 35633\r\n}\r\n\r\n/** @hidden */\r\nexport enum EParameterType {\r\n BYTE = 5120,\r\n UNSIGNED_BYTE = 5121,\r\n SHORT = 5122,\r\n UNSIGNED_SHORT = 5123,\r\n INT = 5124,\r\n UNSIGNED_INT = 5125,\r\n FLOAT = 5126,\r\n FLOAT_VEC2 = 35664,\r\n FLOAT_VEC3 = 35665,\r\n FLOAT_VEC4 = 35666,\r\n INT_VEC2 = 35667,\r\n INT_VEC3 = 35668,\r\n INT_VEC4 = 35669,\r\n BOOL = 35670,\r\n BOOL_VEC2 = 35671,\r\n BOOL_VEC3 = 35672,\r\n BOOL_VEC4 = 35673,\r\n FLOAT_MAT2 = 35674,\r\n FLOAT_MAT3 = 35675,\r\n FLOAT_MAT4 = 35676,\r\n SAMPLER_2D = 35678\r\n}\r\n\r\n/** @hidden */\r\nexport enum ETextureWrapMode {\r\n CLAMP_TO_EDGE = 33071,\r\n MIRRORED_REPEAT = 33648,\r\n REPEAT = 10497\r\n}\r\n\r\n/** @hidden */\r\nexport enum ETextureFilterType {\r\n NEAREST = 9728,\r\n LINEAR = 9728,\r\n NEAREST_MIPMAP_NEAREST = 9984,\r\n LINEAR_MIPMAP_NEAREST = 9985,\r\n NEAREST_MIPMAP_LINEAR = 9986,\r\n LINEAR_MIPMAP_LINEAR = 9987\r\n}\r\n\r\n/** @hidden */\r\nexport enum ETextureFormat {\r\n ALPHA = 6406,\r\n RGB = 6407,\r\n RGBA = 6408,\r\n LUMINANCE = 6409,\r\n LUMINANCE_ALPHA = 6410\r\n}\r\n\r\n/** @hidden */\r\nexport enum ECullingType {\r\n FRONT = 1028,\r\n BACK = 1029,\r\n FRONT_AND_BACK = 1032\r\n}\r\n\r\n/** @hidden */\r\nexport enum EBlendingFunction {\r\n ZERO = 0,\r\n ONE = 1,\r\n SRC_COLOR = 768,\r\n ONE_MINUS_SRC_COLOR = 769,\r\n DST_COLOR = 774,\r\n ONE_MINUS_DST_COLOR = 775,\r\n SRC_ALPHA = 770,\r\n ONE_MINUS_SRC_ALPHA = 771,\r\n DST_ALPHA = 772,\r\n ONE_MINUS_DST_ALPHA = 773,\r\n CONSTANT_COLOR = 32769,\r\n ONE_MINUS_CONSTANT_COLOR = 32770,\r\n CONSTANT_ALPHA = 32771,\r\n ONE_MINUS_CONSTANT_ALPHA = 32772,\r\n SRC_ALPHA_SATURATE = 776\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFProperty {\r\n extensions?: { [key: string]: any };\r\n extras?: Object;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFChildRootProperty extends IGLTFProperty {\r\n name?: string;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFAccessor extends IGLTFChildRootProperty {\r\n bufferView: string;\r\n byteOffset: number;\r\n byteStride: number;\r\n count: number;\r\n type: string;\r\n componentType: EComponentType;\r\n\r\n max?: number[];\r\n min?: number[];\r\n name?: string;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFBufferView extends IGLTFChildRootProperty {\r\n buffer: string;\r\n byteOffset: number;\r\n byteLength: number;\r\n byteStride: number;\r\n\r\n target?: number;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFBuffer extends IGLTFChildRootProperty {\r\n uri: string;\r\n\r\n byteLength?: number;\r\n type?: string;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFShader extends IGLTFChildRootProperty {\r\n uri: string;\r\n type: EShaderType;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFProgram extends IGLTFChildRootProperty {\r\n attributes: string[];\r\n fragmentShader: string;\r\n vertexShader: string;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFTechniqueParameter {\r\n type: number;\r\n\r\n count?: number;\r\n semantic?: string;\r\n node?: string;\r\n value?: number | boolean | string | Array<any>;\r\n source?: string;\r\n\r\n babylonValue?: any;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFTechniqueCommonProfile {\r\n lightingModel: string;\r\n texcoordBindings: Object;\r\n\r\n parameters?: Array<any>;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFTechniqueStatesFunctions {\r\n blendColor?: number[];\r\n blendEquationSeparate?: number[];\r\n blendFuncSeparate?: number[];\r\n colorMask: boolean[];\r\n cullFace: number[];\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFTechniqueStates {\r\n enable: number[];\r\n functions: IGLTFTechniqueStatesFunctions;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFTechnique extends IGLTFChildRootProperty {\r\n parameters: { [key: string]: IGLTFTechniqueParameter };\r\n program: string;\r\n\r\n attributes: { [key: string]: string };\r\n uniforms: { [key: string]: string };\r\n states: IGLTFTechniqueStates;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFMaterial extends IGLTFChildRootProperty {\r\n technique?: string;\r\n values: string[];\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFMeshPrimitive extends IGLTFProperty {\r\n attributes: { [key: string]: string };\r\n indices: string;\r\n material: string;\r\n\r\n mode?: number;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFMesh extends IGLTFChildRootProperty {\r\n primitives: IGLTFMeshPrimitive[];\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFImage extends IGLTFChildRootProperty {\r\n uri: string;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFSampler extends IGLTFChildRootProperty {\r\n magFilter?: number;\r\n minFilter?: number;\r\n wrapS?: number;\r\n wrapT?: number;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFTexture extends IGLTFChildRootProperty {\r\n sampler: string;\r\n source: string;\r\n\r\n format?: ETextureFormat;\r\n internalFormat?: ETextureFormat;\r\n target?: number;\r\n type?: number;\r\n\r\n // Babylon.js values (optimize)\r\n babylonTexture?: Texture;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFAmbienLight {\r\n color?: number[];\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFDirectionalLight {\r\n color?: number[];\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFPointLight {\r\n color?: number[];\r\n constantAttenuation?: number;\r\n linearAttenuation?: number;\r\n quadraticAttenuation?: number;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFSpotLight {\r\n color?: number[];\r\n constantAttenuation?: number;\r\n fallOfAngle?: number;\r\n fallOffExponent?: number;\r\n linearAttenuation?: number;\r\n quadraticAttenuation?: number;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFLight extends IGLTFChildRootProperty {\r\n type: string;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFCameraOrthographic {\r\n xmag: number;\r\n ymag: number;\r\n zfar: number;\r\n znear: number;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFCameraPerspective {\r\n aspectRatio: number;\r\n yfov: number;\r\n zfar: number;\r\n znear: number;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFCamera extends IGLTFChildRootProperty {\r\n type: string;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFAnimationChannelTarget {\r\n id: string;\r\n path: string;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFAnimationChannel {\r\n sampler: string;\r\n target: IGLTFAnimationChannelTarget;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFAnimationSampler {\r\n input: string;\r\n output: string;\r\n\r\n interpolation?: string;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFAnimation extends IGLTFChildRootProperty {\r\n channels?: IGLTFAnimationChannel[];\r\n parameters?: { [key: string]: string };\r\n samplers?: { [key: string]: IGLTFAnimationSampler };\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFNodeInstanceSkin {\r\n skeletons: string[];\r\n skin: string;\r\n meshes: string[];\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFSkins extends IGLTFChildRootProperty {\r\n bindShapeMatrix: number[];\r\n inverseBindMatrices: string;\r\n jointNames: string[];\r\n\r\n babylonSkeleton?: Skeleton;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFNode extends IGLTFChildRootProperty {\r\n camera?: string;\r\n children: string[];\r\n skin?: string;\r\n jointName?: string;\r\n light?: string;\r\n matrix: number[];\r\n mesh?: string;\r\n meshes?: string[];\r\n rotation?: number[];\r\n scale?: number[];\r\n translation?: number[];\r\n\r\n // Babylon.js values (optimize)\r\n babylonNode?: Node;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFScene extends IGLTFChildRootProperty {\r\n nodes: string[];\r\n}\r\n\r\n/** @hidden */\r\nexport interface IGLTFRuntime {\r\n extensions: { [key: string]: any };\r\n accessors: { [key: string]: IGLTFAccessor };\r\n buffers: { [key: string]: IGLTFBuffer };\r\n bufferViews: { [key: string]: IGLTFBufferView };\r\n meshes: { [key: string]: IGLTFMesh };\r\n lights: { [key: string]: IGLTFLight };\r\n cameras: { [key: string]: IGLTFCamera };\r\n nodes: { [key: string]: IGLTFNode };\r\n images: { [key: string]: IGLTFImage };\r\n textures: { [key: string]: IGLTFTexture };\r\n shaders: { [key: string]: IGLTFShader };\r\n programs: { [key: string]: IGLTFProgram };\r\n samplers: { [key: string]: IGLTFSampler };\r\n techniques: { [key: string]: IGLTFTechnique };\r\n materials: { [key: string]: IGLTFMaterial };\r\n animations: { [key: string]: IGLTFAnimation };\r\n skins: { [key: string]: IGLTFSkins };\r\n\r\n currentScene?: Object;\r\n scenes: { [key: string]: IGLTFScene }; // v1.1\r\n\r\n extensionsUsed: string[];\r\n extensionsRequired?: string[]; // v1.1\r\n\r\n buffersCount: number;\r\n shaderscount: number;\r\n\r\n scene: Scene;\r\n rootUrl: string;\r\n\r\n loadedBufferCount: number;\r\n loadedBufferViews: { [name: string]: ArrayBufferView };\r\n\r\n loadedShaderCount: number;\r\n\r\n importOnlyMeshes: boolean;\r\n importMeshesNames?: string[];\r\n\r\n dummyNodes: Node[];\r\n\r\n assetContainer: Nullable<AssetContainer>;\r\n}\r\n\r\n/** @hidden */\r\nexport interface INodeToRoot {\r\n bone: Bone;\r\n node: IGLTFNode;\r\n id: string;\r\n}\r\n\r\n/** @hidden */\r\nexport interface IJointNode {\r\n node: IGLTFNode;\r\n id: string;\r\n}\r\n"]}
@@ -1,62 +0,0 @@
1
- import { IGLTFTechniqueParameter, IGLTFAccessor, ETextureFilterType, IGLTFRuntime, IGLTFBufferView, EComponentType } from "./glTFLoaderInterfaces";
2
- import { Effect } from "@babylonjs/core/Materials/effect";
3
- import { ShaderMaterial } from "@babylonjs/core/Materials/shaderMaterial";
4
- import { Node } from "@babylonjs/core/node";
5
- import { Scene } from "@babylonjs/core/scene";
6
- /**
7
- * Utils functions for GLTF
8
- * @hidden
9
- */
10
- export declare class GLTFUtils {
11
- /**
12
- * Sets the given "parameter" matrix
13
- * @param scene: the Scene object
14
- * @param source: the source node where to pick the matrix
15
- * @param parameter: the GLTF technique parameter
16
- * @param uniformName: the name of the shader's uniform
17
- * @param shaderMaterial: the shader material
18
- */
19
- static SetMatrix(scene: Scene, source: Node, parameter: IGLTFTechniqueParameter, uniformName: string, shaderMaterial: ShaderMaterial | Effect): void;
20
- /**
21
- * Sets the given "parameter" matrix
22
- * @param shaderMaterial: the shader material
23
- * @param uniform: the name of the shader's uniform
24
- * @param value: the value of the uniform
25
- * @param type: the uniform's type (EParameterType FLOAT, VEC2, VEC3 or VEC4)
26
- */
27
- static SetUniform(shaderMaterial: ShaderMaterial | Effect, uniform: string, value: any, type: number): boolean;
28
- /**
29
- * Returns the wrap mode of the texture
30
- * @param mode: the mode value
31
- */
32
- static GetWrapMode(mode: number): number;
33
- /**
34
- * Returns the byte stride giving an accessor
35
- * @param accessor: the GLTF accessor objet
36
- */
37
- static GetByteStrideFromType(accessor: IGLTFAccessor): number;
38
- /**
39
- * Returns the texture filter mode giving a mode value
40
- * @param mode: the filter mode value
41
- */
42
- static GetTextureFilterMode(mode: number): ETextureFilterType;
43
- static GetBufferFromBufferView(gltfRuntime: IGLTFRuntime, bufferView: IGLTFBufferView, byteOffset: number, byteLength: number, componentType: EComponentType): ArrayBufferView;
44
- /**
45
- * Returns a buffer from its accessor
46
- * @param gltfRuntime: the GLTF runtime
47
- * @param accessor: the GLTF accessor
48
- */
49
- static GetBufferFromAccessor(gltfRuntime: IGLTFRuntime, accessor: IGLTFAccessor): any;
50
- /**
51
- * Decodes a buffer view into a string
52
- * @param view: the buffer view
53
- */
54
- static DecodeBufferToText(view: ArrayBufferView): string;
55
- /**
56
- * Returns the default material of gltf. Related to
57
- * https://github.com/KhronosGroup/glTF/tree/master/specification/1.0#appendix-a-default-material
58
- * @param scene: the Babylon.js scene
59
- */
60
- static GetDefaultMaterial(scene: Scene): ShaderMaterial;
61
- private static _DefaultMaterial;
62
- }