Skip to main content

octahedral_decode_tangent

Function octahedral_decode_tangent 

Source
pub fn octahedral_decode_tangent(v: Vec2) -> (Vec3, f32)
Expand description

Decode tangent vectors from octahedral coordinates and return the sign. Input is [-1, 1]. The y component should have been mapped to always be positive and then encoded the sign.