#laplacian

How much a value differs from the average around it: positive in a dip, negative on a bump. On a grid it is a weighted sum of a cell's neighbors less the cell itself, here 0.2 for each of the four beside it and 0.05 for each corner. Adding a little of it each step moves every cell toward its neighbors, which is diffusion.

1 shader

All techniques · In the glossary