gpujs / gpu.js

GPU Accelerated JavaScript
https://gpu.rocks
MIT License
15.1k stars 652 forks source link

How do I import and export a texture as a CPU array? #645

Open harshkhandeparkar opened 3 years ago

harshkhandeparkar commented 3 years ago

https://gist.github.com/HarshKhandeparkar/e6bf93c22083b81683d890ca56b35196

Please see the above gist and read the comments at the end of index.js. The expected output on the HTML file is a graph with two axes but the graph is red. What am I doing wrong?

GPU.js version: v2.10.0