← projects

graphics · sub-star

photon_tracer

CPU raytracer built with no graphics libraries at all.



readme

A raytracer written from scratch in C++ that computes where light rays intersect 3D geometry and generates images from nothing but math. No graphics library is involved anywhere. the vector algebra, the camera, the intersection tests, and the image file format are all hand-written.

artifact

not simulated: this sphere is raytraced in your browser, scanline by scanline.

signal log

built with

C++17WebAssembly

open the live demo →
view repository →