Mitosis in the Gray-Scott model: writing shader-based chemical simulations

The Gray Scott Model of Reaction Diffusion demonstrates complex patterns through a small chemical system simulation. Interaction can be done by clicking to drop green and reset by pressing a button. The simplicity of local rules and math is deceiving since heavy computations are needed for every step. Running such a simulation on a CPU is slow, but GPUs excel due to parallel processing capabilities. An introduction to writing simulations using GLSL ES is provided, implementing the Gray Scott model in less than 100 lines of code. The model combines auto-catalytic reactions and diffusion, leading to fascinating emergent behaviors and continuous cellular automata. Controversially, the model discretizes space and time, approximating a continuous world for simulation.

https://pierre-couy.dev/simulations/2024/09/gray-scott-shader.html

To top