Skip to main content

read_gltf

Function read_gltf 

Source
pub fn read_gltf(text: &str) -> OgeomResult<Vec<ImportedMesh>>
Expand description

Read a .gltf: the JSON form, whose buffers are data URIs.

A buffer with an external uri is refused by name: this function is handed bytes, not a directory, and quietly producing a mesh with no positions would be worse than saying so.

ยงErrors

As read_glb.