Intro to 2D signed distance functions and drawing touch controls with the GPU
A signed distance function is a function that represents a shape that takes a point as an input and returns the shortest distance to that shape. The sign of the output value determines if the point exists inside the shape or not…