Programming SDF Animations of Rick and Morty

This web content demonstrates how to create animations using GPU shaders and signed distance fields without images or libraries, as shown with Pixel Rick. The code, written in OpenGL Shading Language, determines the color of each pixel in the preview screen. Various shapes can be drawn using different functions, such as circle, star, and round_rect. The process involves combining shapes using signed distance functions, like blending the ear and head of Rick. Techniques like stretching shapes and rounding corners are employed, offering insights into the creative process. The content emphasizes trial and error, as the author meticulously replicates Rick’s face using code.

https://danielchasehooper.com/posts/code-animated-rick/

To top