rasterizer

c++ software renderer

Clone

git clone https://git.jun.sh/rasterizer.git

Screenshots

Screenshots from the rasterizer, still a WIP.

Overview

Interactive software rasterizer written in C++, just to grok some GPU pipeline rendering, associated graphics APIs and math. Attempts to do things more classically in the GPU way. Like a depth buffer instead of sorting, Pineda-style edge triangle rasterization, homogeneous clipping, and floating-point math instead of ints.

Local setup

Build script for each platform, acquiring SDL is skipped. -r for the release build.

Windows

.\build_win32.bat

Linux

./build_linux.sh

MacOS

./build_macos.sh

/assets holds the meshes. Scene composition is handled manually in initialize_scene().

To-do

Resources