DField SolutionsMérnöki stúdió · Budapest
Loading · Töltődik
Skip to content
Category: 3D rendering

Caustyx

Light, traced by hand.

What it is

Caustyx is a CPU ray tracer written from scratch: it builds up Vec3 algebra, ray-sphere intersection, Phong shading, hard shadows and recursive mirror reflections, then cleans the edges with 2x supersampling. The core intersection and shading math is covered by 13 tests. A dependency-light build you can download and run locally to see how rendering works under the hood.

A CPU ray tracer with Vec3 algebra, ray-sphere intersection, Phong shading, hard shadows, recursive mirror reflections, and 2× supersampling AA. 13 tests on the core intersection and shading math.

What's inside

The full source, the tests, and CI. Open it, read it, change it. A zero-dependency core, free, in the MIT spirit.

Run it after unzip

pnpm install && pnpm dev