Posted On: November 30th 2022, 02:11 pm
I’ve recently released gpu-io — a WebGL computing library for real-time physics simulations, particle/agent-based systems, cellular automata, image processing, and general purpose GPU computations.
Examples: https://apps.amandaghassaei.com/gpu-io/examples/
GitHub: https://github.com/amandaghassaei/gpu-io
I’ll also post a link in my story, I’ve created a bunch of interactive demos to try out!
gpu-io makes it easy to build GPU-accelerated applications without worrying about low-level WebGL details. It has built-in helper functions for composing real-time physics simulations — e.g. applying boundary conditions, flip-flopping prev/next state buffers, rendering particles, and adding touch interactivity. It also plays nicely with
#threejs — data can be passed between the two libraries via WebGL textures without ever leaving the GPU. I’m using gpu-io for all of my shader experiments, including the computational fluid/marbling work I’ve been up to lately.
gpu-io is designed for WebGL 2 with fallbacks to convert your shader code to run in WebGL 1 if needed, so it should run on practically any mobile or older browser. WebGPU support is planned!
#webgl #glsl #shaders #shader #shadertoy #gpgpu #creativecoding #cellularautomata #imageprocessing #physics #simulation #webgpu #generativeart #computationaldesign