⚠️ Fork Notice: > This is a maintained fork of the original
gltfcrate. Since the original repository has been inactive, this fork was created to support modern 3D rendering engines (specifically the Myth Engine), bringing critical support for new glTF 2.0 extensions like Meshopt Compression.
This crate is intended to load glTF 2.0, a file format designed for the efficient transmission of 3D assets.
rustc version 1.61 or above is required.
Reference infographic

Usage
See the crate documentation for example usage.
Features
Extras and names
By default, myth-gltf ignores all extras and names included with glTF assets. You can negate this by enabling the extras and names features, respectively.
[]
= "1.4.2"
= ["extras", "names"]
glTF extensions
The following glTF extensions are supported by the crate:
KHR_lights_punctualKHR_materials_pbrSpecularGlossinessKHR_materials_unlitKHR_texture_transformKHR_materials_variantsKHR_materials_volumeKHR_materials_specularKHR_materials_transmissionKHR_materials_iorKHR_materials_emissive_strengthEXT_texture_webp
To use an extension, list its name in the features section.
[]
= ["KHR_materials_unlit"]
Examples
gltf-display
Demonstrates how the glTF JSON is deserialized.
gltf-export
Demonstrates how glTF JSON can be built and exported using the gltf-json crate.
gltf-roundtrip
Deserializes and serializes the JSON part of a glTF asset.
gltf-tree
Visualises the scene heirarchy of a glTF asset, which is a strict tree of nodes.
Tests
Running tests locally requires to clone the glTF-Sample-Assets repository first.