Crate easy_gltf

source ·
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.

§Installation

[dependencies]
easy-gltf="1.1.2"

§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§

  • Contains model and material

Structs§

  • Contains camera properties.
  • Contains material properties of models.
  • Geometry to be rendered with the given material.
  • Contains cameras, models and lights of a scene.

Enums§

Functions§

  • Load scenes from path to a glTF 2.0.