pub fn octahedral_encode_signed(v: Vec3) -> Vec2Expand description
Encode normals or unit direction vectors as octahedral coordinates with range [-1, 1]. Use octahedral_decode_signed to decode.
pub fn octahedral_encode_signed(v: Vec3) -> Vec2Encode normals or unit direction vectors as octahedral coordinates with range [-1, 1]. Use octahedral_decode_signed to decode.