Skip to main content

CompressedNormal

Type Alias CompressedNormal 

Source
pub type CompressedNormal = [i16; 2];
Expand description

One compressed vertex normal: Snorm16x2, octahedral-encoded.

The encoding is absolute rather than relative to a per-mesh range, so it needs no decode parameters: a normal survives the round trip through compress_normals and the decode_normal counterpart in the shader without reading any metadata.