gltf_kun 0.0.2

Extensible library for building glTF toolchains.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
const CARGO_MANIFEST_DIR: &str = env!("CARGO_MANIFEST_DIR");
const ASSETS_DIR: &str = "../assets";
const MODEL: &str = "TriangleWithoutIndices/TriangleWithoutIndices.gltf";

fn main() {
    let path = format!("{}/{}/{}", CARGO_MANIFEST_DIR, ASSETS_DIR, MODEL);
    let gltf = gltf_kun::import(&path).unwrap();

    gltf.nodes().iter().for_each(|_node| {
        // println!("{:#?}", node.data());
    });
}