Company
Date Published
Nov. 18, 2021
Author
Michelle Lim
Word count
809
Language
English
Hacker News points
None

Summary

This tutorial teaches how to draw styled rectangles using Metal graphics shaders. It covers drawing a rectangle, adding borders, rounding the rectangle's corners, and filling the rectangle with linear gradients. The text also explains concepts like distance fields, vector projections, and antialiasing. The code examples are in Metal, Appleā€™s official shader API. This tutorial is aimed at beginners who are new to GPU rendering.