pub fn raster_triangle<const N: usize>(
w: usize,
h: usize,
tri: [Vert<N>; 3],
clip: &Clip,
frag: impl FnMut(usize, usize, &[f64; N]),
)Expand description
Rasterise a triangle, calling frag(x, y, varyings) for each covered pixel
centre inside clip. Varyings are interpolated linearly (no perspective).