000: Preamble
An introduction to the series, its goals, and style.001: Signed Distance Fields / Functions
Introducing to SDF and their use as building blocks for GPU 2D drawing002: Rectangles, Rounded Corners, Masking, Rotation
Deriving the SDF for rectangles and introducing the usage of masking to achieve inner shadows/highlights effects003: Combining Shapes, Conceptualizing Commands
Exploring how to create more complex shapes by combining multiple shapes via addition and subtraction004: Starting the libary project in Odin using SDL2 and Metal
Discussion about this post
No posts
Great resource, especially for the SDF parts. I wanted to draw some polygons the other day but didn't know how to do any SDF drawing, and found this by chance (though I'm also in HMN discord, I don't know how I missed this).
I spent couple of hours reading and doing them, the exercises and math on paper too. Turns out they are simple, but someone had to lay them down in a way I could grok. Thanks