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: (_, {offset}) => offset * 4
},
},
uniforms: {
u_max_ix: n_points,
u_boust: 1,
u_time: regl.context("time"),
u_aspect_ratio: 1,
u_color_buffer: colorscheme,
u_color: regl.prop("color"),
u_separation: 0,
u_texture_map: background_textures,
u_texture_num: regl.prop("texture_num"),
},
count: (_, {count}) => {return count},
primitive: regl.prop("primitive")
}
return regl(regl_params)
}