Crate voxelify

Source

Structs§

Vertex

Functions§

create_glb
Creates a GLB object that can be written to a file
create_gltf_root
Creates the root JSON object for GLTF
image_to_vertices
Converts an image to list of vertices that can be used to create a mesh Each pixel will be converted to a voxel with height determined by the height argument The faces of the voxel will be culled if they are not visible
to_padded_byte_vector
Creates a padded byte vector from a generic vector Needed for creating the GLB/GLTF file