Skip to content

馃寑 Ray Marching: Drawing 3D Worlds with Distance Functions

With a 3D distance function, a fragment shader can draw a whole scene without a single triangle: march a ray from each pixel, jumping as far as the distance allows. Watch the jumps, then explore a live scene. Part 4 of the signed distance fields series.

21 November 2026 路 ~10 min read 路 2 interactive demos

馃敜 SDF Text: Crisp Letters from Tiny Textures

Store the distance to a letter鈥檚 edge in a texture instead of the letter itself, and it stays razor sharp when magnified, with outlines, glows and bold text for free. Part 3 of the signed distance fields series.

21 November 2026 路 ~7 min read 路 1 interactive demo

馃珷 Combining SDFs: Unions, Smooth Blends and Bending Space

Two lines of maths join, cut and melt shapes together, and a few more repeat, mirror and twist them, endlessly, for free. Part 2 of the signed distance fields series.

21 November 2026 路 ~9 min read 路 2 interactive demos

馃數 Signed Distance Fields: Shapes Made of Distances

Describe a shape by how far every point is from its edge, and you get crisp edges at any size, easy outlines and much more. See how circles, boxes, lines and polygons are written as distance functions.

21 November 2026 路 ~9 min read 路 1 interactive demo