3D Reaction-Diffusion

This notebook implements a three-dimensional version of the Gray-Scott reaction diffusion simulation as described by Karl Sims,

with initial conditions , , and a small region at the center with .

The computation is performed entirely on the GPU using WebGPU compute shaders. Unlike the original WebGL implementation, which stored 3D data in 2D textures with complex coordinate conversion math, this version takes advantage of WebGPU’s native 3D texture support.

Rendering uses instanced slices ordered back-to-front according to the view angle, using the painter’s algorithm for transparency.