Simple software rasterizer developed in C using Raylib It is based on the triangle rasterizer found here.
It implements:
- top left rasterization rule
- barycentric coordinates for interpolating colors
- edge function per-pixel optimization
- subpixel coordinates
Install raylib and run:
# build
make
# run
./rasterizer <scale>SPACE - toggle rotation
1, 2, 3 - toggle the triangles