Expand description
Goth-gltf aims to be a low-level, unopinionated reader for gltf files.
Basic example:
let filename = std::env::args().nth(1).unwrap();
let bytes = std::fs::read(&filename).unwrap();
let (gltf, _): (
goth_gltf::Gltf<goth_gltf::default_extensions::Extensions>,
_,
) = goth_gltf::Gltf::from_bytes(&bytes).unwrap();
println!("{:#?}", gltf);§In comparison with gltf-rs, it:
- Represents the gltf JSON structure transparently
- Uses nanoserde instead of serde
- Supports a wider range of extensions
- Has no code specific for loading images or reading attributes out of buffers
§Extensions Implemented
KHR_lights_punctualKHR_materials_emissive_strengthKHR_materials_iorKHR_materials_sheenKHR_materials_unlitKHR_texture_basisuKHR_texture_transformKHR_materials_transmissionEXT_mesh_gpu_instancingEXT_meshopt_compressionMSFT_lodMSFT_screencoverage
Modules§
Structs§
- Accessor
- Animation
- Animation
Sampler - Attributes
- Buffer
- Buffer
View - Camera
- Camera
Orthographic - Camera
Perspective - Channel
- Gltf
- A parsed gltf document.
- Image
- Material
- Mesh
- MinFilter
- Node
- Normal
Texture Info - Occlusion
Texture Info - PbrMetallic
Roughness - Primitive
- Sampler
- Scene
- Skin
- Sparse
- Sparse
Indices - Sparse
Values - Target
- Texture
- Texture
Info
Enums§
- Accessor
Type - Alpha
Mode - Camera
Type - Component
Type - Filter
Mode - Interpolation
- Node
Transform - Primitive
Mode - Sampler
Wrap - Target
Path