In this video we design a vertex layout that allows for extensive 2D batch rendering, the QuadVertex can express 2D primitives such as rectangles (squares), ellipses (circles), images, text glyphs (bitmap or SDF), and even supports border radius.
0:00 Introduction
0:57 2D Batching
2:11 Rectangles
2:44 Images / Sprites
4:57 Ellipses
6:20 Encode two ratios
7:07 Border Radius
8:40 Outro
The game engine codebase (WIP)
- https://github.com/x2w-soda/Ludens