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

Alphabet's cash burn raises alarm for Big Tech as AI spending climbs
1vuio0pswjnm7 · Hacker News · 3h ago
Everyone should know SIMD
WadeGrimridge · Hacker News · 23h ago
Cruller: Bun's Zig Runtime, Continued on Zig 0.16
Erenay09 · Hacker News · 11h ago
LG to ban residential proxies from smart TV apps
DemiGuru · Hacker News · 1d ago
Kimi K3 Is Competitive with Fable; Kimi K3 and Fable Is SoTA
piotrgrabowski · Hacker News · 1d ago