pub fn octahedral_encode_tangent(v: Vec3, sign: f32) -> Vec2Expand description
Encode tangent vectors as octahedral coordinates with range [-1, 1]. The sign is encoded in y component. Use octahedral_decode_tangent to decode.
pub fn octahedral_encode_tangent(v: Vec3, sign: f32) -> Vec2Encode tangent vectors as octahedral coordinates with range [-1, 1]. The sign is encoded in y component. Use octahedral_decode_tangent to decode.