pub trait VertexMap {
// Required methods
fn point(&self, p: [f32; 3]) -> [f32; 3];
fn normal(&self, n: [f32; 3]) -> Option<[f32; 3]>;
fn tangent(&self, t: [f32; 4]) -> Option<[f32; 4]>;
}Expand description
A map of space a primitive’s vertices are moved by, one rule per Moves: the one way a pass moves vertex streams
in place (move_streams), so every stream whose meaning moves is moved.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl VertexMap for Linear
impl VertexMap for Offset
impl VertexMap for SourceFrame
A frame conversion moves a mesh’s streams as it moves positions and directions: normals and tangents by the signed permutation (a uniform scale turns no direction), a tangent’s bitangent sign negated where the conversion mirrors.