| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A WebGPU implementation of the Slug algorithm, originally created by Eric Lengyel.
This project ports the original HLSL shaders to WGSL and demonstrates a modern GPU-driven text rendering pipeline.
The Slug algorithm renders high-quality vector text entirely on the GPU by converting glyph outlines into a banded Bézier representation.
This repository includes:
Text shaping (CPU)
Text is shaped into positioned glyphs using text-shaper.
Curve extraction (CPU)
Glyph outlines are converted into quadratic Bézier curves.
Band organization (CPU)
Curves are partitioned into vertical and horizontal bands.
Rendering (GPU)
The Slug algorithm evaluates the bands and rasterizes glyphs fully on the GPU.
bun installHuge thanks to Eric Lengyel for creating the Slug algorithm and releasing it into the public domain.
| Back | FazBrowse Home | New Git URL |