I have two large Uint8Array
. The sizes are: 1024
and 2048
I would like to update these arrays in each frame.
The 1024
length array would fit into 256 vec4 uniforms, or a 16*16 image. But I don't think, it is the right way to do it.
How to send large arrays from javascript to GLSL?
Edit
My problem with textures is, that to update the image in each frame, I have to copy the data into an ImageData
object. Then I have to draw the imageData onto a canvas. And after that, I have to get the dataURL of the canvas, and change the src attribute of the image