Sending colour data to jit.gl.mesh from jit.gl.pix
Hi,
I'm getting on a bit further with my exploration of jit.gl.pix and the power this has for things like particle systems. I'm able to send vertex data to a jit.gl.mesh as a texture, which enables me to have systems running smoothly with over 1/4 million particles: however, what I'd like to be able to do now is have individual colour data for each particle. I'm keeping colour data in a second texture alongside the texture that contains particle position, but I'm struggling to work out how to pass this into the jit.gl.mesh without bringing this texture back onto the CPU and feeding into input 4 of the mesh as a matrix - which slows the whole thing down.
Does anybody have any suggestions as to whether or how this might be possible?
Many thanks
Tom