hi guys, im looking to render points progressively, one at time kind of like https://p5js.org/examples/image-pointillism.html
Can someone point me towards the relevant docs I need to go through - am I going about it the wrong way if I do something like have a massive array of elements and just update the offset?
tex(data)
to tex.subimage(data)
Can someone explain the math in this example to me?
https://github.com/regl-project/regl/blob/gh-pages/example/texture.js
specifically the gl_Position = vec4(1.0 - 2.0 * position, 0, 1);
I don't get what this magic 1.0-2.0* position
is doing
1.0 - 2.0 * position
becomes 1 - 2 X 0 = 1 when position is 0, or 1 - 2 X 1 = -1 when position is 1.
flipY
when loading the texture.