advanced

#16 Voronoi Noise

Cell-based patterns

Voronoi noise scatters random seed points across a grid and assigns each pixel to its nearest seed, creating a mosaic of organic cells. The key technique is checking all neighboring grid cells to find both the nearest and second-nearest seed point. The difference between those two distances reveals the cell edges — thin lines that look like cracks, dried mud, giraffe patterns, or underwater caustics. Animating the seed positions over time makes the cells pulse and shift like living tissue.

Key Concepts

Try this shader live in the Shader Sandbox editor with real-time preview.
Open in Sandbox

Source Code


    
← Previous Smooth Blending (SDF) Next → Glow & Bloom

All Tutorials