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

Every AI model has the same "controversial" take on humans
rakannimer · Hacker News · 6h ago
Jailbreaking the Switch 2
ledoge · Hacker News · 14h ago
The recently proposed o(n log n) integer multiplication algorithm [pdf]
craigcitro · Hacker News · 20h ago
Security Disclosure
passenger · Hacker News · 1d ago
Show HN: Run full iOS 16.5 firmware on Android Devices
aghuang · Hacker News · 7h ago