Expand description
This crate is intended to load glTF 2.0, a file format designed for the efficient transmission of 3D assets.
It’s base on gltf crate but has an easy to use output.
§Example
let scenes = easy_gltf::load("tests/cube.glb").expect("Failed to load glTF");
for scene in scenes {
println!(
"Cameras: #{} Lights: #{} Models: #{}",
scene.cameras.len(),
scene.lights.len(),
scene.models.len()
)
}
Modules§
- model
- Contains model and material
Structs§
- Camera
- Contains camera properties.
- Material
- Contains material properties of models.
- Model
- Geometry to be rendered with the given material.
- Scene
- Contains cameras, models and lights of a scene.
Enums§
- Light
- Represents a light.
- Projection
- Camera projections
Functions§
- load
- Load scenes from path to a glTF 2.0.