Diffusion with framebuffer objects

Each step draws a full-screen triangle into one texture while reading the other, then the two swap roles: the ping-pong of render3, render4, render5 and particleDiffusion. This page combines them with the image filters of hatImage1, hawaiiImage and hawaiiIsobel, and can run two simulations side by side that differ in one setting.

Oops ... your browser doesn't support the HTML5 canvas element
Drag to paint · point to read a texel
left (or only)right

Point at the simulation to read a texel.

Example and comparison

Simulation
Particles and painting
Display

What the samples do, and what this page changes