Combining Shapes

Your Answer
Correct Answer
Waiting...

OK, now we're going to combine two shapes into one! This is called a union. The cool thing about distance fields is that we only need to work with the distance here: you're just finding the closer of the two distances.

You can do this with a single one of GLSL's builtin functions.