pub fn node_tree_from_path(
path: impl AsRef<Path>,
) -> Result<GltfTree, GltfLoadError>Available on crate feature
gltf only.Expand description
Loads a .glb or .gltf file from disk into a GltfTree.
A GLB’s embedded blob is used directly. For a .gltf, external buffer
files ("uri" fields) are read relative to the file’s directory, joined
as raw paths (no percent-decoding yet); data: URIs are not decoded and
their buffers are skipped with a warning — the affected primitives fall
back to their documented defaults.