@babylonjs/loaders 5.0.0-beta.8 → 5.0.0-beta.8-snapshot
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/package.json +20 -198
- package/OBJ/index.d.ts +0 -4
- package/OBJ/index.js +0 -5
- package/OBJ/index.js.map +0 -1
- package/OBJ/mtlFileLoader.d.ts +0 -40
- package/OBJ/mtlFileLoader.js +0 -222
- package/OBJ/mtlFileLoader.js.map +0 -1
- package/OBJ/objFileLoader.d.ts +0 -133
- package/OBJ/objFileLoader.js +0 -301
- package/OBJ/objFileLoader.js.map +0 -1
- package/OBJ/objLoadingOptions.d.ts +0 -43
- package/OBJ/objLoadingOptions.js +0 -2
- package/OBJ/objLoadingOptions.js.map +0 -1
- package/OBJ/solidParser.d.ts +0 -153
- package/OBJ/solidParser.js +0 -700
- package/OBJ/solidParser.js.map +0 -1
- package/STL/index.d.ts +0 -1
- package/STL/index.js +0 -2
- package/STL/index.js.map +0 -1
- package/STL/stlFileLoader.d.ts +0 -71
- package/STL/stlFileLoader.js +0 -240
- package/STL/stlFileLoader.js.map +0 -1
- package/glTF/1.0/glTFBinaryExtension.d.ts +0 -13
- package/glTF/1.0/glTFBinaryExtension.js +0 -62
- package/glTF/1.0/glTFBinaryExtension.js.map +0 -1
- package/glTF/1.0/glTFLoader.d.ts +0 -106
- package/glTF/1.0/glTFLoader.js +0 -1697
- package/glTF/1.0/glTFLoader.js.map +0 -1
- package/glTF/1.0/glTFLoaderInterfaces.d.ts +0 -412
- package/glTF/1.0/glTFLoaderInterfaces.js +0 -96
- package/glTF/1.0/glTFLoaderInterfaces.js.map +0 -1
- package/glTF/1.0/glTFLoaderUtils.d.ts +0 -62
- package/glTF/1.0/glTFLoaderUtils.js +0 -233
- package/glTF/1.0/glTFLoaderUtils.js.map +0 -1
- package/glTF/1.0/glTFMaterialsCommonExtension.d.ts +0 -10
- package/glTF/1.0/glTFMaterialsCommonExtension.js +0 -128
- package/glTF/1.0/glTFMaterialsCommonExtension.js.map +0 -1
- package/glTF/1.0/index.d.ts +0 -5
- package/glTF/1.0/index.js +0 -6
- package/glTF/1.0/index.js.map +0 -1
- package/glTF/2.0/Extensions/EXT_lights_image_based.d.ts +0 -36
- package/glTF/2.0/Extensions/EXT_lights_image_based.js +0 -111
- package/glTF/2.0/Extensions/EXT_lights_image_based.js.map +0 -1
- package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.d.ts +0 -27
- package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js +0 -80
- package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js.map +0 -1
- package/glTF/2.0/Extensions/EXT_meshopt_compression.d.ts +0 -27
- package/glTF/2.0/Extensions/EXT_meshopt_compression.js +0 -43
- package/glTF/2.0/Extensions/EXT_meshopt_compression.js.map +0 -1
- package/glTF/2.0/Extensions/EXT_texture_webp.d.ts +0 -21
- package/glTF/2.0/Extensions/EXT_texture_webp.js +0 -33
- package/glTF/2.0/Extensions/EXT_texture_webp.js.map +0 -1
- package/glTF/2.0/Extensions/ExtrasAsMetadata.d.ts +0 -32
- package/glTF/2.0/Extensions/ExtrasAsMetadata.js +0 -56
- package/glTF/2.0/Extensions/ExtrasAsMetadata.js.map +0 -1
- package/glTF/2.0/Extensions/KHR_draco_mesh_compression.d.ts +0 -31
- package/glTF/2.0/Extensions/KHR_draco_mesh_compression.js +0 -102
- package/glTF/2.0/Extensions/KHR_draco_mesh_compression.js.map +0 -1
- package/glTF/2.0/Extensions/KHR_lights_punctual.d.ts +0 -28
- package/glTF/2.0/Extensions/KHR_lights_punctual.js +0 -82
- package/glTF/2.0/Extensions/KHR_lights_punctual.js.map +0 -1
- package/glTF/2.0/Extensions/KHR_materials_clearcoat.d.ts +0 -31
- package/glTF/2.0/Extensions/KHR_materials_clearcoat.js +0 -87
- package/glTF/2.0/Extensions/KHR_materials_clearcoat.js.map +0 -1
- package/glTF/2.0/Extensions/KHR_materials_emissive_strength.d.ts +0 -30
- package/glTF/2.0/Extensions/KHR_materials_emissive_strength.js +0 -46
- package/glTF/2.0/Extensions/KHR_materials_emissive_strength.js.map +0 -1
- package/glTF/2.0/Extensions/KHR_materials_ior.d.ts +0 -34
- package/glTF/2.0/Extensions/KHR_materials_ior.js +0 -55
- package/glTF/2.0/Extensions/KHR_materials_ior.js.map +0 -1
- package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.d.ts +0 -30
- package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js +0 -73
- package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js.map +0 -1
- package/glTF/2.0/Extensions/KHR_materials_sheen.d.ts +0 -31
- package/glTF/2.0/Extensions/KHR_materials_sheen.js +0 -77
- package/glTF/2.0/Extensions/KHR_materials_sheen.js.map +0 -1
- package/glTF/2.0/Extensions/KHR_materials_specular.d.ts +0 -30
- package/glTF/2.0/Extensions/KHR_materials_specular.js +0 -67
- package/glTF/2.0/Extensions/KHR_materials_specular.js.map +0 -1
- package/glTF/2.0/Extensions/KHR_materials_translucency.d.ts +0 -31
- package/glTF/2.0/Extensions/KHR_materials_translucency.js +0 -77
- package/glTF/2.0/Extensions/KHR_materials_translucency.js.map +0 -1
- package/glTF/2.0/Extensions/KHR_materials_transmission.d.ts +0 -30
- package/glTF/2.0/Extensions/KHR_materials_transmission.js +0 -278
- package/glTF/2.0/Extensions/KHR_materials_transmission.js.map +0 -1
- package/glTF/2.0/Extensions/KHR_materials_unlit.d.ts +0 -30
- package/glTF/2.0/Extensions/KHR_materials_unlit.js +0 -66
- package/glTF/2.0/Extensions/KHR_materials_unlit.js.map +0 -1
- package/glTF/2.0/Extensions/KHR_materials_variants.d.ts +0 -76
- package/glTF/2.0/Extensions/KHR_materials_variants.js +0 -244
- package/glTF/2.0/Extensions/KHR_materials_variants.js.map +0 -1
- package/glTF/2.0/Extensions/KHR_materials_volume.d.ts +0 -31
- package/glTF/2.0/Extensions/KHR_materials_volume.js +0 -79
- package/glTF/2.0/Extensions/KHR_materials_volume.js.map +0 -1
- package/glTF/2.0/Extensions/KHR_mesh_quantization.d.ts +0 -19
- package/glTF/2.0/Extensions/KHR_mesh_quantization.js +0 -22
- package/glTF/2.0/Extensions/KHR_mesh_quantization.js.map +0 -1
- package/glTF/2.0/Extensions/KHR_texture_basisu.d.ts +0 -21
- package/glTF/2.0/Extensions/KHR_texture_basisu.js +0 -33
- package/glTF/2.0/Extensions/KHR_texture_basisu.js.map +0 -1
- package/glTF/2.0/Extensions/KHR_texture_transform.d.ts +0 -25
- package/glTF/2.0/Extensions/KHR_texture_transform.js +0 -54
- package/glTF/2.0/Extensions/KHR_texture_transform.js.map +0 -1
- package/glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts +0 -29
- package/glTF/2.0/Extensions/KHR_xmp_json_ld.js +0 -47
- package/glTF/2.0/Extensions/KHR_xmp_json_ld.js.map +0 -1
- package/glTF/2.0/Extensions/MSFT_audio_emitter.d.ts +0 -38
- package/glTF/2.0/Extensions/MSFT_audio_emitter.js +0 -217
- package/glTF/2.0/Extensions/MSFT_audio_emitter.js.map +0 -1
- package/glTF/2.0/Extensions/MSFT_lod.d.ts +0 -75
- package/glTF/2.0/Extensions/MSFT_lod.js +0 -334
- package/glTF/2.0/Extensions/MSFT_lod.js.map +0 -1
- package/glTF/2.0/Extensions/MSFT_minecraftMesh.d.ts +0 -14
- package/glTF/2.0/Extensions/MSFT_minecraftMesh.js +0 -37
- package/glTF/2.0/Extensions/MSFT_minecraftMesh.js.map +0 -1
- package/glTF/2.0/Extensions/MSFT_sRGBFactors.d.ts +0 -14
- package/glTF/2.0/Extensions/MSFT_sRGBFactors.js +0 -37
- package/glTF/2.0/Extensions/MSFT_sRGBFactors.js.map +0 -1
- package/glTF/2.0/Extensions/index.d.ts +0 -26
- package/glTF/2.0/Extensions/index.js +0 -27
- package/glTF/2.0/Extensions/index.js.map +0 -1
- package/glTF/2.0/glTFLoader.d.ts +0 -357
- package/glTF/2.0/glTFLoader.js +0 -2249
- package/glTF/2.0/glTFLoader.js.map +0 -1
- package/glTF/2.0/glTFLoaderExtension.d.ts +0 -152
- package/glTF/2.0/glTFLoaderExtension.js +0 -2
- package/glTF/2.0/glTFLoaderExtension.js.map +0 -1
- package/glTF/2.0/glTFLoaderInterfaces.d.ts +0 -209
- package/glTF/2.0/glTFLoaderInterfaces.js +0 -2
- package/glTF/2.0/glTFLoaderInterfaces.js.map +0 -1
- package/glTF/2.0/index.d.ts +0 -4
- package/glTF/2.0/index.js +0 -5
- package/glTF/2.0/index.js.map +0 -1
- package/glTF/glTFFileLoader.d.ts +0 -368
- package/glTF/glTFFileLoader.js +0 -869
- package/glTF/glTFFileLoader.js.map +0 -1
- package/glTF/glTFValidation.d.ts +0 -29
- package/glTF/glTFValidation.js +0 -122
- package/glTF/glTFValidation.js.map +0 -1
- package/glTF/index.d.ts +0 -5
- package/glTF/index.js +0 -6
- package/glTF/index.js.map +0 -1
- package/index.d.ts +0 -3
- package/index.js.map +0 -1
- package/legacy/legacy-glTF.d.ts +0 -2
- package/legacy/legacy-glTF.js +0 -19
- package/legacy/legacy-glTF.js.map +0 -1
- package/legacy/legacy-glTF1.d.ts +0 -2
- package/legacy/legacy-glTF1.js +0 -15
- package/legacy/legacy-glTF1.js.map +0 -1
- package/legacy/legacy-glTF1FileLoader.d.ts +0 -2
- package/legacy/legacy-glTF1FileLoader.js +0 -3
- package/legacy/legacy-glTF1FileLoader.js.map +0 -1
- package/legacy/legacy-glTF2.d.ts +0 -2
- package/legacy/legacy-glTF2.js +0 -33
- package/legacy/legacy-glTF2.js.map +0 -1
- package/legacy/legacy-glTF2FileLoader.d.ts +0 -2
- package/legacy/legacy-glTF2FileLoader.js +0 -3
- package/legacy/legacy-glTF2FileLoader.js.map +0 -1
- package/legacy/legacy-glTFFileLoader.d.ts +0 -3
- package/legacy/legacy-glTFFileLoader.js +0 -4
- package/legacy/legacy-glTFFileLoader.js.map +0 -1
- package/legacy/legacy-objFileLoader.d.ts +0 -1
- package/legacy/legacy-objFileLoader.js +0 -13
- package/legacy/legacy-objFileLoader.js.map +0 -1
- package/legacy/legacy-stlFileLoader.d.ts +0 -1
- package/legacy/legacy-stlFileLoader.js +0 -13
- package/legacy/legacy-stlFileLoader.js.map +0 -1
- package/legacy/legacy.d.ts +0 -6
- package/legacy/legacy.js +0 -7
- package/legacy/legacy.js.map +0 -1
- package/readme.md +0 -24
@@ -1,152 +0,0 @@
|
|
1
|
-
import { Nullable } from "@babylonjs/core/types";
|
2
|
-
import { AnimationGroup } from "@babylonjs/core/Animations/animationGroup";
|
3
|
-
import { Material } from "@babylonjs/core/Materials/material";
|
4
|
-
import { Camera } from "@babylonjs/core/Cameras/camera";
|
5
|
-
import { Geometry } from "@babylonjs/core/Meshes/geometry";
|
6
|
-
import { TransformNode } from "@babylonjs/core/Meshes/transformNode";
|
7
|
-
import { BaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture";
|
8
|
-
import { Mesh } from "@babylonjs/core/Meshes/mesh";
|
9
|
-
import { AbstractMesh } from "@babylonjs/core/Meshes/abstractMesh";
|
10
|
-
import { IDisposable } from "@babylonjs/core/scene";
|
11
|
-
import { IScene, INode, IMesh, ISkin, ICamera, IMeshPrimitive, IMaterial, ITextureInfo, IAnimation, ITexture, IBufferView, IBuffer } from "./glTFLoaderInterfaces";
|
12
|
-
import { IGLTFLoaderExtension as IGLTFBaseLoaderExtension } from "../glTFFileLoader";
|
13
|
-
import { IProperty } from 'babylonjs-gltf2interface';
|
14
|
-
/**
|
15
|
-
* Interface for a glTF loader extension.
|
16
|
-
*/
|
17
|
-
export interface IGLTFLoaderExtension extends IGLTFBaseLoaderExtension, IDisposable {
|
18
|
-
/**
|
19
|
-
* Called after the loader state changes to LOADING.
|
20
|
-
*/
|
21
|
-
onLoading?(): void;
|
22
|
-
/**
|
23
|
-
* Called after the loader state changes to READY.
|
24
|
-
*/
|
25
|
-
onReady?(): void;
|
26
|
-
/**
|
27
|
-
* Define this method to modify the default behavior when loading scenes.
|
28
|
-
* @param context The context when loading the asset
|
29
|
-
* @param scene The glTF scene property
|
30
|
-
* @returns A promise that resolves when the load is complete or null if not handled
|
31
|
-
*/
|
32
|
-
loadSceneAsync?(context: string, scene: IScene): Nullable<Promise<void>>;
|
33
|
-
/**
|
34
|
-
* Define this method to modify the default behavior when loading nodes.
|
35
|
-
* @param context The context when loading the asset
|
36
|
-
* @param node The glTF node property
|
37
|
-
* @param assign A function called synchronously after parsing the glTF properties
|
38
|
-
* @returns A promise that resolves with the loaded Babylon transform node when the load is complete or null if not handled
|
39
|
-
*/
|
40
|
-
loadNodeAsync?(context: string, node: INode, assign: (babylonMesh: TransformNode) => void): Nullable<Promise<TransformNode>>;
|
41
|
-
/**
|
42
|
-
* Define this method to modify the default behavior when loading cameras.
|
43
|
-
* @param context The context when loading the asset
|
44
|
-
* @param camera The glTF camera property
|
45
|
-
* @param assign A function called synchronously after parsing the glTF properties
|
46
|
-
* @returns A promise that resolves with the loaded Babylon camera when the load is complete or null if not handled
|
47
|
-
*/
|
48
|
-
loadCameraAsync?(context: string, camera: ICamera, assign: (babylonCamera: Camera) => void): Nullable<Promise<Camera>>;
|
49
|
-
/**
|
50
|
-
* @hidden
|
51
|
-
* Define this method to modify the default behavior when loading vertex data for mesh primitives.
|
52
|
-
* @param context The context when loading the asset
|
53
|
-
* @param primitive The glTF mesh primitive property
|
54
|
-
* @returns A promise that resolves with the loaded geometry when the load is complete or null if not handled
|
55
|
-
*/
|
56
|
-
_loadVertexDataAsync?(context: string, primitive: IMeshPrimitive, babylonMesh: Mesh): Nullable<Promise<Geometry>>;
|
57
|
-
/**
|
58
|
-
* @hidden
|
59
|
-
* Define this method to modify the default behavior when loading data for mesh primitives.
|
60
|
-
* @param context The context when loading the asset
|
61
|
-
* @param name The mesh name when loading the asset
|
62
|
-
* @param node The glTF node when loading the asset
|
63
|
-
* @param mesh The glTF mesh when loading the asset
|
64
|
-
* @param primitive The glTF mesh primitive property
|
65
|
-
* @param assign A function called synchronously after parsing the glTF properties
|
66
|
-
* @returns A promise that resolves with the loaded mesh when the load is complete or null if not handled
|
67
|
-
*/
|
68
|
-
_loadMeshPrimitiveAsync?(context: string, name: string, node: INode, mesh: IMesh, primitive: IMeshPrimitive, assign: (babylonMesh: AbstractMesh) => void): Nullable<Promise<AbstractMesh>>;
|
69
|
-
/**
|
70
|
-
* @hidden
|
71
|
-
* Define this method to modify the default behavior when loading materials. Load material creates the material and then loads material properties.
|
72
|
-
* @param context The context when loading the asset
|
73
|
-
* @param material The glTF material property
|
74
|
-
* @param assign A function called synchronously after parsing the glTF properties
|
75
|
-
* @returns A promise that resolves with the loaded Babylon material when the load is complete or null if not handled
|
76
|
-
*/
|
77
|
-
_loadMaterialAsync?(context: string, material: IMaterial, babylonMesh: Nullable<Mesh>, babylonDrawMode: number, assign: (babylonMaterial: Material) => void): Nullable<Promise<Material>>;
|
78
|
-
/**
|
79
|
-
* Define this method to modify the default behavior when creating materials.
|
80
|
-
* @param context The context when loading the asset
|
81
|
-
* @param material The glTF material property
|
82
|
-
* @param babylonDrawMode The draw mode for the Babylon material
|
83
|
-
* @returns The Babylon material or null if not handled
|
84
|
-
*/
|
85
|
-
createMaterial?(context: string, material: IMaterial, babylonDrawMode: number): Nullable<Material>;
|
86
|
-
/**
|
87
|
-
* Define this method to modify the default behavior when loading material properties.
|
88
|
-
* @param context The context when loading the asset
|
89
|
-
* @param material The glTF material property
|
90
|
-
* @param babylonMaterial The Babylon material
|
91
|
-
* @returns A promise that resolves when the load is complete or null if not handled
|
92
|
-
*/
|
93
|
-
loadMaterialPropertiesAsync?(context: string, material: IMaterial, babylonMaterial: Material): Nullable<Promise<void>>;
|
94
|
-
/**
|
95
|
-
* Define this method to modify the default behavior when loading texture infos.
|
96
|
-
* @param context The context when loading the asset
|
97
|
-
* @param textureInfo The glTF texture info property
|
98
|
-
* @param assign A function called synchronously after parsing the glTF properties
|
99
|
-
* @returns A promise that resolves with the loaded Babylon texture when the load is complete or null if not handled
|
100
|
-
*/
|
101
|
-
loadTextureInfoAsync?(context: string, textureInfo: ITextureInfo, assign: (babylonTexture: BaseTexture) => void): Nullable<Promise<BaseTexture>>;
|
102
|
-
/**
|
103
|
-
* @hidden
|
104
|
-
* Define this method to modify the default behavior when loading textures.
|
105
|
-
* @param context The context when loading the asset
|
106
|
-
* @param texture The glTF texture property
|
107
|
-
* @param assign A function called synchronously after parsing the glTF properties
|
108
|
-
* @returns A promise that resolves with the loaded Babylon texture when the load is complete or null if not handled
|
109
|
-
*/
|
110
|
-
_loadTextureAsync?(context: string, texture: ITexture, assign: (babylonTexture: BaseTexture) => void): Nullable<Promise<BaseTexture>>;
|
111
|
-
/**
|
112
|
-
* Define this method to modify the default behavior when loading animations.
|
113
|
-
* @param context The context when loading the asset
|
114
|
-
* @param animation The glTF animation property
|
115
|
-
* @returns A promise that resolves with the loaded Babylon animation group when the load is complete or null if not handled
|
116
|
-
*/
|
117
|
-
loadAnimationAsync?(context: string, animation: IAnimation): Nullable<Promise<AnimationGroup>>;
|
118
|
-
/**
|
119
|
-
* @hidden
|
120
|
-
* Define this method to modify the default behavior when loading skins.
|
121
|
-
* @param context The context when loading the asset
|
122
|
-
* @param node The glTF node property
|
123
|
-
* @param skin The glTF skin property
|
124
|
-
* @returns A promise that resolves when the load is complete or null if not handled
|
125
|
-
*/
|
126
|
-
_loadSkinAsync?(context: string, node: INode, skin: ISkin): Nullable<Promise<void>>;
|
127
|
-
/**
|
128
|
-
* @hidden
|
129
|
-
* Define this method to modify the default behavior when loading uris.
|
130
|
-
* @param context The context when loading the asset
|
131
|
-
* @param property The glTF property associated with the uri
|
132
|
-
* @param uri The uri to load
|
133
|
-
* @returns A promise that resolves with the loaded data when the load is complete or null if not handled
|
134
|
-
*/
|
135
|
-
_loadUriAsync?(context: string, property: IProperty, uri: string): Nullable<Promise<ArrayBufferView>>;
|
136
|
-
/**
|
137
|
-
* Define this method to modify the default behavior when loading buffer views.
|
138
|
-
* @param context The context when loading the asset
|
139
|
-
* @param bufferView The glTF buffer view property
|
140
|
-
* @returns A promise that resolves with the loaded data when the load is complete or null if not handled
|
141
|
-
*/
|
142
|
-
loadBufferViewAsync?(context: string, bufferView: IBufferView): Nullable<Promise<ArrayBufferView>>;
|
143
|
-
/**
|
144
|
-
* Define this method to modify the default behavior when loading buffers.
|
145
|
-
* @param context The context when loading the asset
|
146
|
-
* @param buffer The glTF buffer property
|
147
|
-
* @param byteOffset The byte offset to load
|
148
|
-
* @param byteLength The byte length to load
|
149
|
-
* @returns A promise that resolves with the loaded data when the load is complete or null if not handled
|
150
|
-
*/
|
151
|
-
loadBufferAsync?(context: string, buffer: IBuffer, byteOffset: number, byteLength: number): Nullable<Promise<ArrayBufferView>>;
|
152
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"glTFLoaderExtension.js","sourceRoot":"","sources":["../../../../sourceES6/loaders/src/glTF/2.0/glTFLoaderExtension.ts"],"names":[],"mappings":"","sourcesContent":["import { Nullable } from \"@babylonjs/core/types\";\r\nimport { AnimationGroup } from \"@babylonjs/core/Animations/animationGroup\";\r\nimport { Material } from \"@babylonjs/core/Materials/material\";\r\nimport { Camera } from \"@babylonjs/core/Cameras/camera\";\r\nimport { Geometry } from \"@babylonjs/core/Meshes/geometry\";\r\nimport { TransformNode } from \"@babylonjs/core/Meshes/transformNode\";\r\nimport { BaseTexture } from \"@babylonjs/core/Materials/Textures/baseTexture\";\r\nimport { Mesh } from \"@babylonjs/core/Meshes/mesh\";\r\nimport { AbstractMesh } from \"@babylonjs/core/Meshes/abstractMesh\";\r\nimport { IDisposable } from \"@babylonjs/core/scene\";\r\nimport { IScene, INode, IMesh, ISkin, ICamera, IMeshPrimitive, IMaterial, ITextureInfo, IAnimation, ITexture, IBufferView, IBuffer } from \"./glTFLoaderInterfaces\";\r\nimport { IGLTFLoaderExtension as IGLTFBaseLoaderExtension } from \"../glTFFileLoader\";\r\nimport { IProperty } from 'babylonjs-gltf2interface';\r\n\r\n/**\r\n * Interface for a glTF loader extension.\r\n */\r\nexport interface IGLTFLoaderExtension extends IGLTFBaseLoaderExtension, IDisposable {\r\n /**\r\n * Called after the loader state changes to LOADING.\r\n */\r\n onLoading?(): void;\r\n\r\n /**\r\n * Called after the loader state changes to READY.\r\n */\r\n onReady?(): void;\r\n\r\n /**\r\n * Define this method to modify the default behavior when loading scenes.\r\n * @param context The context when loading the asset\r\n * @param scene The glTF scene property\r\n * @returns A promise that resolves when the load is complete or null if not handled\r\n */\r\n loadSceneAsync?(context: string, scene: IScene): Nullable<Promise<void>>;\r\n\r\n /**\r\n * Define this method to modify the default behavior when loading nodes.\r\n * @param context The context when loading the asset\r\n * @param node The glTF node property\r\n * @param assign A function called synchronously after parsing the glTF properties\r\n * @returns A promise that resolves with the loaded Babylon transform node when the load is complete or null if not handled\r\n */\r\n loadNodeAsync?(context: string, node: INode, assign: (babylonMesh: TransformNode) => void): Nullable<Promise<TransformNode>>;\r\n\r\n /**\r\n * Define this method to modify the default behavior when loading cameras.\r\n * @param context The context when loading the asset\r\n * @param camera The glTF camera property\r\n * @param assign A function called synchronously after parsing the glTF properties\r\n * @returns A promise that resolves with the loaded Babylon camera when the load is complete or null if not handled\r\n */\r\n loadCameraAsync?(context: string, camera: ICamera, assign: (babylonCamera: Camera) => void): Nullable<Promise<Camera>>;\r\n\r\n /**\r\n * @hidden\r\n * Define this method to modify the default behavior when loading vertex data for mesh primitives.\r\n * @param context The context when loading the asset\r\n * @param primitive The glTF mesh primitive property\r\n * @returns A promise that resolves with the loaded geometry when the load is complete or null if not handled\r\n */\r\n _loadVertexDataAsync?(context: string, primitive: IMeshPrimitive, babylonMesh: Mesh): Nullable<Promise<Geometry>>;\r\n\r\n /**\r\n * @hidden\r\n * Define this method to modify the default behavior when loading data for mesh primitives.\r\n * @param context The context when loading the asset\r\n * @param name The mesh name when loading the asset\r\n * @param node The glTF node when loading the asset\r\n * @param mesh The glTF mesh when loading the asset\r\n * @param primitive The glTF mesh primitive property\r\n * @param assign A function called synchronously after parsing the glTF properties\r\n * @returns A promise that resolves with the loaded mesh when the load is complete or null if not handled\r\n */\r\n _loadMeshPrimitiveAsync?(context: string, name: string, node: INode, mesh: IMesh, primitive: IMeshPrimitive, assign: (babylonMesh: AbstractMesh) => void): Nullable<Promise<AbstractMesh>>;\r\n\r\n /**\r\n * @hidden\r\n * Define this method to modify the default behavior when loading materials. Load material creates the material and then loads material properties.\r\n * @param context The context when loading the asset\r\n * @param material The glTF material property\r\n * @param assign A function called synchronously after parsing the glTF properties\r\n * @returns A promise that resolves with the loaded Babylon material when the load is complete or null if not handled\r\n */\r\n _loadMaterialAsync?(context: string, material: IMaterial, babylonMesh: Nullable<Mesh>, babylonDrawMode: number, assign: (babylonMaterial: Material) => void): Nullable<Promise<Material>>;\r\n\r\n /**\r\n * Define this method to modify the default behavior when creating materials.\r\n * @param context The context when loading the asset\r\n * @param material The glTF material property\r\n * @param babylonDrawMode The draw mode for the Babylon material\r\n * @returns The Babylon material or null if not handled\r\n */\r\n createMaterial?(context: string, material: IMaterial, babylonDrawMode: number): Nullable<Material>;\r\n\r\n /**\r\n * Define this method to modify the default behavior when loading material properties.\r\n * @param context The context when loading the asset\r\n * @param material The glTF material property\r\n * @param babylonMaterial The Babylon material\r\n * @returns A promise that resolves when the load is complete or null if not handled\r\n */\r\n loadMaterialPropertiesAsync?(context: string, material: IMaterial, babylonMaterial: Material): Nullable<Promise<void>>;\r\n\r\n /**\r\n * Define this method to modify the default behavior when loading texture infos.\r\n * @param context The context when loading the asset\r\n * @param textureInfo The glTF texture info property\r\n * @param assign A function called synchronously after parsing the glTF properties\r\n * @returns A promise that resolves with the loaded Babylon texture when the load is complete or null if not handled\r\n */\r\n loadTextureInfoAsync?(context: string, textureInfo: ITextureInfo, assign: (babylonTexture: BaseTexture) => void): Nullable<Promise<BaseTexture>>;\r\n\r\n /**\r\n * @hidden\r\n * Define this method to modify the default behavior when loading textures.\r\n * @param context The context when loading the asset\r\n * @param texture The glTF texture property\r\n * @param assign A function called synchronously after parsing the glTF properties\r\n * @returns A promise that resolves with the loaded Babylon texture when the load is complete or null if not handled\r\n */\r\n _loadTextureAsync?(context: string, texture: ITexture, assign: (babylonTexture: BaseTexture) => void): Nullable<Promise<BaseTexture>>;\r\n\r\n /**\r\n * Define this method to modify the default behavior when loading animations.\r\n * @param context The context when loading the asset\r\n * @param animation The glTF animation property\r\n * @returns A promise that resolves with the loaded Babylon animation group when the load is complete or null if not handled\r\n */\r\n loadAnimationAsync?(context: string, animation: IAnimation): Nullable<Promise<AnimationGroup>>;\r\n\r\n /**\r\n * @hidden\r\n * Define this method to modify the default behavior when loading skins.\r\n * @param context The context when loading the asset\r\n * @param node The glTF node property\r\n * @param skin The glTF skin property\r\n * @returns A promise that resolves when the load is complete or null if not handled\r\n */\r\n _loadSkinAsync?(context: string, node: INode, skin: ISkin): Nullable<Promise<void>>;\r\n\r\n /**\r\n * @hidden\r\n * Define this method to modify the default behavior when loading uris.\r\n * @param context The context when loading the asset\r\n * @param property The glTF property associated with the uri\r\n * @param uri The uri to load\r\n * @returns A promise that resolves with the loaded data when the load is complete or null if not handled\r\n */\r\n _loadUriAsync?(context: string, property: IProperty, uri: string): Nullable<Promise<ArrayBufferView>>;\r\n\r\n /**\r\n * Define this method to modify the default behavior when loading buffer views.\r\n * @param context The context when loading the asset\r\n * @param bufferView The glTF buffer view property\r\n * @returns A promise that resolves with the loaded data when the load is complete or null if not handled\r\n */\r\n loadBufferViewAsync?(context: string, bufferView: IBufferView): Nullable<Promise<ArrayBufferView>>;\r\n\r\n /**\r\n * Define this method to modify the default behavior when loading buffers.\r\n * @param context The context when loading the asset\r\n * @param buffer The glTF buffer property\r\n * @param byteOffset The byte offset to load\r\n * @param byteLength The byte length to load\r\n * @returns A promise that resolves with the loaded data when the load is complete or null if not handled\r\n */\r\n loadBufferAsync?(context: string, buffer: IBuffer, byteOffset: number, byteLength: number): Nullable<Promise<ArrayBufferView>>;\r\n}\r\n"]}
|
@@ -1,209 +0,0 @@
|
|
1
|
-
import { AnimationGroup } from "@babylonjs/core/Animations/animationGroup";
|
2
|
-
import { Skeleton } from "@babylonjs/core/Bones/skeleton";
|
3
|
-
import { Material } from "@babylonjs/core/Materials/material";
|
4
|
-
import { TransformNode } from "@babylonjs/core/Meshes/transformNode";
|
5
|
-
import { Buffer, VertexBuffer } from "@babylonjs/core/Buffers/buffer";
|
6
|
-
import { AbstractMesh } from "@babylonjs/core/Meshes/abstractMesh";
|
7
|
-
import { Mesh } from "@babylonjs/core/Meshes/mesh";
|
8
|
-
import * as GLTF2 from "babylonjs-gltf2interface";
|
9
|
-
/**
|
10
|
-
* Loader interface with an index field.
|
11
|
-
*/
|
12
|
-
export interface IArrayItem {
|
13
|
-
/**
|
14
|
-
* The index of this item in the array.
|
15
|
-
*/
|
16
|
-
index: number;
|
17
|
-
}
|
18
|
-
/**
|
19
|
-
* Loader interface with additional members.
|
20
|
-
*/
|
21
|
-
export interface IAccessor extends GLTF2.IAccessor, IArrayItem {
|
22
|
-
/** @hidden */
|
23
|
-
_data?: Promise<ArrayBufferView>;
|
24
|
-
/** @hidden */
|
25
|
-
_babylonVertexBuffer?: {
|
26
|
-
[kind: string]: Promise<VertexBuffer>;
|
27
|
-
};
|
28
|
-
}
|
29
|
-
/**
|
30
|
-
* Loader interface with additional members.
|
31
|
-
*/
|
32
|
-
export interface IAnimationChannel extends GLTF2.IAnimationChannel, IArrayItem {
|
33
|
-
}
|
34
|
-
/** @hidden */
|
35
|
-
export interface _IAnimationSamplerData {
|
36
|
-
input: Float32Array;
|
37
|
-
interpolation: GLTF2.AnimationSamplerInterpolation;
|
38
|
-
output: Float32Array;
|
39
|
-
}
|
40
|
-
/**
|
41
|
-
* Loader interface with additional members.
|
42
|
-
*/
|
43
|
-
export interface IAnimationSampler extends GLTF2.IAnimationSampler, IArrayItem {
|
44
|
-
/** @hidden */
|
45
|
-
_data?: Promise<_IAnimationSamplerData>;
|
46
|
-
}
|
47
|
-
/**
|
48
|
-
* Loader interface with additional members.
|
49
|
-
*/
|
50
|
-
export interface IAnimation extends GLTF2.IAnimation, IArrayItem {
|
51
|
-
channels: IAnimationChannel[];
|
52
|
-
samplers: IAnimationSampler[];
|
53
|
-
/** @hidden */
|
54
|
-
_babylonAnimationGroup?: AnimationGroup;
|
55
|
-
}
|
56
|
-
/**
|
57
|
-
* Loader interface with additional members.
|
58
|
-
*/
|
59
|
-
export interface IBuffer extends GLTF2.IBuffer, IArrayItem {
|
60
|
-
/** @hidden */
|
61
|
-
_data?: Promise<ArrayBufferView>;
|
62
|
-
}
|
63
|
-
/**
|
64
|
-
* Loader interface with additional members.
|
65
|
-
*/
|
66
|
-
export interface IBufferView extends GLTF2.IBufferView, IArrayItem {
|
67
|
-
/** @hidden */
|
68
|
-
_data?: Promise<ArrayBufferView>;
|
69
|
-
/** @hidden */
|
70
|
-
_babylonBuffer?: Promise<Buffer>;
|
71
|
-
}
|
72
|
-
/**
|
73
|
-
* Loader interface with additional members.
|
74
|
-
*/
|
75
|
-
export interface ICamera extends GLTF2.ICamera, IArrayItem {
|
76
|
-
}
|
77
|
-
/**
|
78
|
-
* Loader interface with additional members.
|
79
|
-
*/
|
80
|
-
export interface IImage extends GLTF2.IImage, IArrayItem {
|
81
|
-
/** @hidden */
|
82
|
-
_data?: Promise<ArrayBufferView>;
|
83
|
-
}
|
84
|
-
/**
|
85
|
-
* Loader interface with additional members.
|
86
|
-
*/
|
87
|
-
export interface IMaterialNormalTextureInfo extends GLTF2.IMaterialNormalTextureInfo, ITextureInfo {
|
88
|
-
}
|
89
|
-
/**
|
90
|
-
* Loader interface with additional members.
|
91
|
-
*/
|
92
|
-
export interface IMaterialOcclusionTextureInfo extends GLTF2.IMaterialOcclusionTextureInfo, ITextureInfo {
|
93
|
-
}
|
94
|
-
/**
|
95
|
-
* Loader interface with additional members.
|
96
|
-
*/
|
97
|
-
export interface IMaterialPbrMetallicRoughness extends GLTF2.IMaterialPbrMetallicRoughness {
|
98
|
-
baseColorTexture?: ITextureInfo;
|
99
|
-
metallicRoughnessTexture?: ITextureInfo;
|
100
|
-
}
|
101
|
-
/**
|
102
|
-
* Loader interface with additional members.
|
103
|
-
*/
|
104
|
-
export interface IMaterial extends GLTF2.IMaterial, IArrayItem {
|
105
|
-
pbrMetallicRoughness?: IMaterialPbrMetallicRoughness;
|
106
|
-
normalTexture?: IMaterialNormalTextureInfo;
|
107
|
-
occlusionTexture?: IMaterialOcclusionTextureInfo;
|
108
|
-
emissiveTexture?: ITextureInfo;
|
109
|
-
/** @hidden */
|
110
|
-
_data?: {
|
111
|
-
[babylonDrawMode: number]: {
|
112
|
-
babylonMaterial: Material;
|
113
|
-
babylonMeshes: AbstractMesh[];
|
114
|
-
promise: Promise<void>;
|
115
|
-
};
|
116
|
-
};
|
117
|
-
}
|
118
|
-
/**
|
119
|
-
* Loader interface with additional members.
|
120
|
-
*/
|
121
|
-
export interface IMesh extends GLTF2.IMesh, IArrayItem {
|
122
|
-
primitives: IMeshPrimitive[];
|
123
|
-
}
|
124
|
-
/**
|
125
|
-
* Loader interface with additional members.
|
126
|
-
*/
|
127
|
-
export interface IMeshPrimitive extends GLTF2.IMeshPrimitive, IArrayItem {
|
128
|
-
/** @hidden */
|
129
|
-
_instanceData?: {
|
130
|
-
babylonSourceMesh: Mesh;
|
131
|
-
promise: Promise<any>;
|
132
|
-
};
|
133
|
-
}
|
134
|
-
/**
|
135
|
-
* Loader interface with additional members.
|
136
|
-
*/
|
137
|
-
export interface INode extends GLTF2.INode, IArrayItem {
|
138
|
-
/**
|
139
|
-
* The parent glTF node.
|
140
|
-
*/
|
141
|
-
parent?: INode;
|
142
|
-
/** @hidden */
|
143
|
-
_babylonTransformNode?: TransformNode;
|
144
|
-
/** @hidden */
|
145
|
-
_primitiveBabylonMeshes?: AbstractMesh[];
|
146
|
-
/** @hidden */
|
147
|
-
_numMorphTargets?: number;
|
148
|
-
}
|
149
|
-
/** @hidden */
|
150
|
-
export interface _ISamplerData {
|
151
|
-
noMipMaps: boolean;
|
152
|
-
samplingMode: number;
|
153
|
-
wrapU: number;
|
154
|
-
wrapV: number;
|
155
|
-
}
|
156
|
-
/**
|
157
|
-
* Loader interface with additional members.
|
158
|
-
*/
|
159
|
-
export interface ISampler extends GLTF2.ISampler, IArrayItem {
|
160
|
-
/** @hidden */
|
161
|
-
_data?: _ISamplerData;
|
162
|
-
}
|
163
|
-
/**
|
164
|
-
* Loader interface with additional members.
|
165
|
-
*/
|
166
|
-
export interface IScene extends GLTF2.IScene, IArrayItem {
|
167
|
-
}
|
168
|
-
/**
|
169
|
-
* Loader interface with additional members.
|
170
|
-
*/
|
171
|
-
export interface ISkin extends GLTF2.ISkin, IArrayItem {
|
172
|
-
/** @hidden */
|
173
|
-
_data?: {
|
174
|
-
babylonSkeleton: Skeleton;
|
175
|
-
promise: Promise<void>;
|
176
|
-
};
|
177
|
-
}
|
178
|
-
/**
|
179
|
-
* Loader interface with additional members.
|
180
|
-
*/
|
181
|
-
export interface ITexture extends GLTF2.ITexture, IArrayItem {
|
182
|
-
/** @hidden */
|
183
|
-
_textureInfo: ITextureInfo;
|
184
|
-
}
|
185
|
-
/**
|
186
|
-
* Loader interface with additional members.
|
187
|
-
*/
|
188
|
-
export interface ITextureInfo extends GLTF2.ITextureInfo {
|
189
|
-
/** false or undefined if the texture holds color data (true if data are roughness, normal, ...) */
|
190
|
-
nonColorData?: boolean;
|
191
|
-
}
|
192
|
-
/**
|
193
|
-
* Loader interface with additional members.
|
194
|
-
*/
|
195
|
-
export interface IGLTF extends GLTF2.IGLTF {
|
196
|
-
accessors?: IAccessor[];
|
197
|
-
animations?: IAnimation[];
|
198
|
-
buffers?: IBuffer[];
|
199
|
-
bufferViews?: IBufferView[];
|
200
|
-
cameras?: ICamera[];
|
201
|
-
images?: IImage[];
|
202
|
-
materials?: IMaterial[];
|
203
|
-
meshes?: IMesh[];
|
204
|
-
nodes?: INode[];
|
205
|
-
samplers?: ISampler[];
|
206
|
-
scenes?: IScene[];
|
207
|
-
skins?: ISkin[];
|
208
|
-
textures?: ITexture[];
|
209
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"glTFLoaderInterfaces.js","sourceRoot":"","sources":["../../../../sourceES6/loaders/src/glTF/2.0/glTFLoaderInterfaces.ts"],"names":[],"mappings":"","sourcesContent":["import { AnimationGroup } from \"@babylonjs/core/Animations/animationGroup\";\r\nimport { Skeleton } from \"@babylonjs/core/Bones/skeleton\";\r\nimport { Material } from \"@babylonjs/core/Materials/material\";\r\nimport { TransformNode } from \"@babylonjs/core/Meshes/transformNode\";\r\nimport { Buffer, VertexBuffer } from \"@babylonjs/core/Buffers/buffer\";\r\nimport { AbstractMesh } from \"@babylonjs/core/Meshes/abstractMesh\";\r\nimport { Mesh } from \"@babylonjs/core/Meshes/mesh\";\r\n\r\nimport * as GLTF2 from \"babylonjs-gltf2interface\";\r\n\r\n/**\r\n * Loader interface with an index field.\r\n */\r\nexport interface IArrayItem {\r\n /**\r\n * The index of this item in the array.\r\n */\r\n index: number;\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface IAccessor extends GLTF2.IAccessor, IArrayItem {\r\n /** @hidden */\r\n _data?: Promise<ArrayBufferView>;\r\n\r\n /** @hidden */\r\n _babylonVertexBuffer?: { [kind: string]: Promise<VertexBuffer>; };\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface IAnimationChannel extends GLTF2.IAnimationChannel, IArrayItem {\r\n}\r\n\r\n/** @hidden */\r\nexport interface _IAnimationSamplerData {\r\n input: Float32Array;\r\n interpolation: GLTF2.AnimationSamplerInterpolation;\r\n output: Float32Array;\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface IAnimationSampler extends GLTF2.IAnimationSampler, IArrayItem {\r\n /** @hidden */\r\n _data?: Promise<_IAnimationSamplerData>;\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface IAnimation extends GLTF2.IAnimation, IArrayItem {\r\n channels: IAnimationChannel[];\r\n samplers: IAnimationSampler[];\r\n\r\n /** @hidden */\r\n _babylonAnimationGroup?: AnimationGroup;\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface IBuffer extends GLTF2.IBuffer, IArrayItem {\r\n /** @hidden */\r\n _data?: Promise<ArrayBufferView>;\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface IBufferView extends GLTF2.IBufferView, IArrayItem {\r\n /** @hidden */\r\n _data?: Promise<ArrayBufferView>;\r\n\r\n /** @hidden */\r\n _babylonBuffer?: Promise<Buffer>;\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface ICamera extends GLTF2.ICamera, IArrayItem {\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface IImage extends GLTF2.IImage, IArrayItem {\r\n /** @hidden */\r\n _data?: Promise<ArrayBufferView>;\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface IMaterialNormalTextureInfo extends GLTF2.IMaterialNormalTextureInfo, ITextureInfo {\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface IMaterialOcclusionTextureInfo extends GLTF2.IMaterialOcclusionTextureInfo, ITextureInfo {\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface IMaterialPbrMetallicRoughness extends GLTF2.IMaterialPbrMetallicRoughness {\r\n baseColorTexture?: ITextureInfo;\r\n metallicRoughnessTexture?: ITextureInfo;\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface IMaterial extends GLTF2.IMaterial, IArrayItem {\r\n pbrMetallicRoughness?: IMaterialPbrMetallicRoughness;\r\n normalTexture?: IMaterialNormalTextureInfo;\r\n occlusionTexture?: IMaterialOcclusionTextureInfo;\r\n emissiveTexture?: ITextureInfo;\r\n\r\n /** @hidden */\r\n _data?: {\r\n [babylonDrawMode: number]: {\r\n babylonMaterial: Material;\r\n babylonMeshes: AbstractMesh[];\r\n promise: Promise<void>;\r\n }\r\n };\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface IMesh extends GLTF2.IMesh, IArrayItem {\r\n primitives: IMeshPrimitive[];\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface IMeshPrimitive extends GLTF2.IMeshPrimitive, IArrayItem {\r\n /** @hidden */\r\n _instanceData?: {\r\n babylonSourceMesh: Mesh;\r\n promise: Promise<any>;\r\n };\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface INode extends GLTF2.INode, IArrayItem {\r\n /**\r\n * The parent glTF node.\r\n */\r\n parent?: INode;\r\n\r\n /** @hidden */\r\n _babylonTransformNode?: TransformNode;\r\n\r\n /** @hidden */\r\n _primitiveBabylonMeshes?: AbstractMesh[];\r\n\r\n /** @hidden */\r\n _numMorphTargets?: number;\r\n}\r\n\r\n/** @hidden */\r\nexport interface _ISamplerData {\r\n noMipMaps: boolean;\r\n samplingMode: number;\r\n wrapU: number;\r\n wrapV: number;\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface ISampler extends GLTF2.ISampler, IArrayItem {\r\n /** @hidden */\r\n _data?: _ISamplerData;\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface IScene extends GLTF2.IScene, IArrayItem {\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface ISkin extends GLTF2.ISkin, IArrayItem {\r\n /** @hidden */\r\n _data?: {\r\n babylonSkeleton: Skeleton;\r\n promise: Promise<void>;\r\n };\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface ITexture extends GLTF2.ITexture, IArrayItem {\r\n /** @hidden */\r\n _textureInfo: ITextureInfo;\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface ITextureInfo extends GLTF2.ITextureInfo {\r\n /** false or undefined if the texture holds color data (true if data are roughness, normal, ...) */\r\n nonColorData?: boolean;\r\n}\r\n\r\n/**\r\n * Loader interface with additional members.\r\n */\r\nexport interface IGLTF extends GLTF2.IGLTF {\r\n accessors?: IAccessor[];\r\n animations?: IAnimation[];\r\n buffers?: IBuffer[];\r\n bufferViews?: IBufferView[];\r\n cameras?: ICamera[];\r\n images?: IImage[];\r\n materials?: IMaterial[];\r\n meshes?: IMesh[];\r\n nodes?: INode[];\r\n samplers?: ISampler[];\r\n scenes?: IScene[];\r\n skins?: ISkin[];\r\n textures?: ITexture[];\r\n}\r\n"]}
|
package/glTF/2.0/index.d.ts
DELETED
package/glTF/2.0/index.js
DELETED
package/glTF/2.0/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../sourceES6/loaders/src/glTF/2.0/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC","sourcesContent":["export * from \"./glTFLoader\";\r\nexport * from \"./glTFLoaderExtension\";\r\nexport * from \"./glTFLoaderInterfaces\";\r\nexport * from \"./Extensions/index\";"]}
|