Function pixel_within_triangle_and_barycentric

Source
pub fn pixel_within_triangle_and_barycentric(
    triangle: &Triangle<2>,
    p: &Vector2<f32>,
) -> (f32, f32, f32, bool)
Expand description
  • Assume the triangle vertices a,b are in counter-clockwise winding order -> Fix this. GLTF can be any winding order