drawPoints = {
const regl_params = {
depth: { enable: false },
stencil: { enable: false },
blend: {
enable: true,
func: {
srcRGB: 'one',
srcAlpha: 'one',
dstRGB: 'one minus src alpha',
dstAlpha: 'one minus src alpha',
},
},
frag: fragment_shader.value,
vert: vertex_shader.value,
attributes: {
ix: {
buffer: points,
stride: 4,
offset: 0
},
},
uniforms: {
tick: ({ tick }) => tick,
u_max_ix: regl.prop("points"),
u_boust: curve_type == "Hilbert" ? 1 : 0,
u_time: regl.context("time"),
u_aspect_ratio: 1,
u_color_buffer: colorscheme,
u_separation: 0,
u_base: 2,
},
count: regl.prop("rounded_points"),
primitive: regl.prop("primitive")
}
return regl(regl_params)
}