Documentation
    Preparing search index...

    Function createGltfLoader

    • Builds a §78 glTF 2.0 loader for the AssetManager (§96, §33).

      See the module header for the exact tier — what parses, what is refused by name, and what is ignored with a record. The result of a load is a GltfAsset; assembly into scene nodes is four's instantiateGltf, because this package may not name a node (§3.1).

      Parameters

      • Optionaloptions: GltfLoaderOptions

        The IO and decode seams plus the §96 bounds; all optional.

      Returns AssetLoader<GltfAsset>

      A loader producing GltfAssets. Each call returns a distinct loader object, hence a distinct cache slot — hoist it to a module constant, exactly as with createTextureLoader.

      FourError INVALID_APPLICATION_STATE for a non-positive maximumBytes.