GLTFLoader
class GLTFLoader extends Loader
glTF/glb 3D model loader
Methods
constructor
new GLTFLoader(view3D)
Create a new instance of GLTFLoader
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION | 
|---|---|---|---|---|
| view3D | View3D | 
Methods
load
Load new GLTF model from the given url
Returns: Promise<Model>
- Promise that resolves Model
 
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION | 
|---|---|---|---|---|
| url | string | URL to fetch glTF/glb file | 
loadFromFiles
Load new GLTF model from the given files
Returns: Promise<Model>
- Promise that resolves Model
 
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION | 
|---|---|---|---|---|
| files | File[] | Files that has glTF/glb and all its associated resources like textures and .bin data files |