← projects

graphics · sub-star

rasterizer_engine

software rasterizer in C++: a shaded, depth-tested cube, every pixel on the CPU.



readme

A rasterizer in C++ that takes a mesh through a 4x4 perspective matrix, culls and shades each face, and fills and depth-tests every pixel into a CPU framebuffer that SDL2 only uploads. It is the pipeline a GPU normally hides, written out explicitly, and the counterpart to photon_tracer, which approaches the same problem from the opposite direction.

artifact

not simulated: 3d points through a perspective matrix, projected live.

signal log

built with

C++17SDL2WebAssembly

open the live demo →
view repository →