finds.dev

ssloy/tinyrenderer

A brief computer graphics / rendering course

View on GitHubHomepage ↗

★ 24,466C++NOASSERTIONupdated Jul 2026

// the take

tinyrenderer is a from-scratch software rasterizer in ~500 lines of C++, built as companion code for a graphics course that walks through the entire rendering pipeline (line drawing, rasterization, z-buffering, shading, texture mapping, shadow mapping, SSAO) without touching OpenGL, Vulkan, or any graphics library. It's for developers who want to understand how a GPU rendering pipeline actually works by implementing one themselves, not for anyone who needs a renderer to put in a project.

Every stage of the pipeline is built incrementally and tied to a numbered article, so you can see exactly what problem each piece of code solves (why barycentric coordinates, why a z-buffer, why tangent space for normal mapping) instead of being handed a finished engine. Zero external dependencies, including graphics-related ones - even TGA file I/O is hand-rolled, which forces you to actually touch every part of the pipeline rather than calling into something else. The final code is genuinely small (~500 lines) and the repo ships working .obj/.tga assets so you can reproduce the demo renders (the diablo3, boggie, african head models) immediately rather than hunting for test data.

It's explicitly not a model for real rendering code: no GPU, no shaders, no parallelism, so none of the actual engineering problems of modern graphics programming (driver quirks, pipeline state, memory bandwidth) show up here. There's no test suite - correctness is judged by eyeballing output images, fine for a teaching tool but not something to build on. The author actively discourages using the code as-is and tells readers to redo the work themselves, so this isn't a starting point or library for an actual rendering project. It's a single-maintainer educational repo with a deliberately frozen scope - don't expect a windowing system, real-time camera controls, or any feature beyond what the course covers.

We read the README, the directory tree and a key source file in October 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
24,466
Forks
2,312
Language
C++
License
NOASSERTION
Last commit
29 Jul 2026

// nearby

If tinyrenderer isn't quite it.

All repos →