Software rendering in 500 lines of bare C++

·Hacker News··

Skip to content 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 ta

Read full article →

Related Articles

Asahi Linux Now Officially Supports Apple M3 Macs – With Caveats
mdp2021 · Hacker News · 6h ago
Private German rocket makes history, reaches orbit from European soil
bookmtn · Hacker News · 23h ago
LLMs as a Cognitive Virus
canjobear · Hacker News · 1d ago
Actively exploited sandbox RCE in all Chromium versions
negura · Hacker News · 1d ago
Formalizing Fermat's Last Theorem
jlebar · Hacker News · 2d ago