Skip to main content

encode_uvs

Function encode_uvs 

Source
pub fn encode_uvs<'a>(
    uvs: &'a [[f32; 2]],
    out_meta: &MeshMetadata,
) -> impl Iterator<Item = CompressedUv> + 'a
Expand description

The compressed UVs of uvs, encoded against out_meta’s existing parameters without re-deriving them.

Useful to reuse one UV range across several meshes; pair it with compress_uvs on the first mesh to fill in out_meta.