Software rendering in 500 lines of bare C++
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 →