Ludo Erudito
Ludo EruditoIZHV
Intro to Game Development
Back to ShaderBox Curriculum
A-03Series A

2D Signed Distance Fields (SDFs)

Circles, rectangles, polar shapes, and boolean operations.

Interactive Live Editoru_time • u_resolution • u_mouse
GLSL OK
u_resolution | u_time | u_mouse

Chapter Concepts & Exercises

Signed Distance Fields measure the exact shortest distance from a point to a shape boundary. Negative inside, positive outside.