The animation start mode. Defaults to FIRST.
Defines if the loader should capture performance counters.
Defines if the loader should compile materials before raising the success callback. Defaults to false.
Defines if the loader should compile shadow generators before raising the success callback. Defaults to false.
The coordinate system mode. Defaults to AUTO.
Supported file extensions of the loader (.gltf, .glb)
The loader state or null if the loader is not active.
Defines if the loader logging is enabled.
Name of the loader ("gltf")
Callback raised when the loader creates a camera after parsing the glTF properties of the camera.
Observable raised when the loader creates a camera after parsing the glTF properties of the camera.
Callback raised when the asset is completely loaded, immediately before the loader is disposed. For assets with LODs, raised when all of the LODs are complete. For assets without LODs, raised when the model is complete, immediately after the loader resolves the returned promise.
Observable raised when the asset is completely loaded, immediately before the loader is disposed. For assets with LODs, raised when all of the LODs are complete. For assets without LODs, raised when the model is complete, immediately after the loader resolves the returned promise.
Callback raised after the loader is disposed.
Observable raised after the loader is disposed.
Callback raised when an error occurs.
Observable raised when an error occurs.
Callback raised after a loader extension is created.
Observable raised after a loader extension is created. Set additional options for a loader extension in this event.
Callback raised when the loader creates a material after parsing the glTF properties of the material.
Observable raised when the loader creates a material after parsing the glTF properties of the material.
Callback raised when the loader creates a mesh after parsing the glTF properties of the mesh.
Observable raised when the loader creates a mesh after parsing the glTF properties of the mesh.
Raised when the asset has been parsed
Raised when the asset has been parsed
Callback raised when the loader creates a texture after parsing the glTF properties of the texture.
Observable raised when the loader creates a texture after parsing the glTF properties of the texture.
Callback raised after a loader extension is created.
Observable raised after validation when validate is set to true. The event data is the result of the validation.
Function called before loading a url referenced by the asset.
Rewrites a url by combining a root url and response url.
Defines if the Alpha blended materials are only applied as coverage. If false, (default) The luminance of each pixel will reduce its opacity to simulate the behaviour of most physical materials. If true, no extra effects are applied to transparent pixels.
Defines if the loader should also compile materials with clip planes. Defaults to false.
Defines if the loader should validate the asset.
If the data string can be loaded directly.
string contianing the file data
if the data can be loaded directly
Instantiates a glTF file loader plugin.
the created plugin
Disposes the loader, releases resources during load, and cancels any outstanding requests.
Imports one or more meshes from the loaded glTF data and adds them to the scene
a string or array of strings of the mesh names that should be loaded from the file
the scene the meshes should be added to
the glTF data to load
root url to load from
event that fires when loading progress has occured
Defines the name of the file to load
a promise containg the loaded meshes, particles, skeletons and animations
Load into an asset container.
The scene to load into
The data to import
The root url for scene and resources
The callback when the load progresses
Defines the name of the file to load
The loaded asset container
Imports all objects from the loaded glTF data and adds them to the scene
the scene the objects should be added to
the glTF data to load
root url to load from
event that fires when loading progress has occured
Defines the name of the file to load
a promise which completes when objects have been loaded to the scene
Returns a promise that resolves when the asset is completely loaded.
a promise that resolves when the asset is completely loaded.
Generated using TypeDoc
File loader for loading glTF files into a scene.