AssetLoader
AssetLoader consumes glTF 2.0 content and produces FilamentAsset objects.
AssetLoader parses a blob of glTF 2.0 content (either JSON or GLB format) and produces a FilamentAsset object, which is a bundle of Filament textures, vertex buffers, index buffers, and entities. An asset is composed of one or more FilamentInstance objects containing the loaded scene hierarchy.
Clients must use AssetLoader to:
Create and destroy FilamentAsset objects (similar to how Engine creates core objects)
Not fetch external buffer data or create textures (use ResourceLoader for this)
AssetLoader uses a MaterialProvider to create materials, e.g. createUbershaderProvider's pre-compiled set.
See also
Properties
Functions
Create a FilamentAsset from glTF 2.0 data.
Create a FilamentInstance from an existing FilamentAsset.
Create a FilamentAsset with pre-allocated instances.
Destroy a FilamentAsset and release all associated resources.
Enable diagnostic output for asset loading.