pub fn raster_gl_line(
w: usize,
h: usize,
p0: (f64, f64),
p1: (f64, f64),
clip: &Clip,
frag: impl FnMut(usize, usize, f64),
)Expand description
Fragments of a 1 px aliased gl.LINES segment (diamond-exit style: start
inclusive, end exclusive along the major axis), with the perpendicular
distance from each pixel centre to the line, which is what the
fill_outline shader’s length(v_pos - gl_FragCoord.xy) evaluates to.