New blog post! Signed distance functions in 46 lines of Python, where I demonstrate how simple SDFs can be, by iteratively building up to a program that renders this ASCII donut. https://vgel.me/posts/donut/

#python #sdf #graphics #blog

Signed distance functions in 46 lines of Python

A walkthrough of 46 lines of code that render a 3D ASCII donut using signed distance functions.