Article

Software rendering in 500 lines of bare C++

RaphGL ·Lobsters ·Published 2026-07-23

Playing with code Home Playing with code Home tinyrenderer tinyrenderer Home Home Table of contents The starting point Compilation Teaser: few examples made with the renderer Bresenham’s line drawing Triangle rasterization Barycentric…

From the article

Playing with code Home Playing with code Home tinyrenderer tinyrenderer Home Home Table of contents The starting point Compilation Teaser: few examples made with the renderer Bresenham’s line drawing Triangle rasterization Barycentric coordinates Hidden faces removal Naive camera handling Better camera Shading More data! Tangent space Shadow mapping Ambient occlusion Bonus: toon shading Afterword tinycompiler tinycompiler Home Abstract syntax trees SLY: lexer and parser Symbol tables Displays Assembly generation DIY lexer DIY parser Afterword tinyoptimizer tinyoptimizer Home mem2reg tinyfloat tinyfloat Home Computers and Numbers Printing floats Addition and errors Division The banana tossing project The banana tossing project Home The Ape Counts Seconds The Ape Buys a Better Watch The Ape…


Share this resource


Discovered 2026-08-02 Source Lobsters Archive 2026-08 →