I was thinking of recreating this ant colony simulation using webgl.
I was planning of storing the state(x,y,direction) of the all ant agents inside a single texture using its rgba channels. During a draw call, each pixel of this texture would be read, and based on the pixel's values, certain positions in another texture would be written into.
Is this any way to do this using webgl? Preferably I would like not to use gl.readPixel and keep everything running the simulation on the gpu.