DFIELDSOLUTIONS

Free software

LabCaustyx: Light, traced by hand

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.

Free software1 sections · 2 min readBy Dezső Mező.mdFree softwareCaustyx

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.

01About the app

3D rendering

What to take away

  • 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.
  • Download: Caustyx (ZIP)
We build this for clientsFull-stack

Read the full write-up

More from the lab

Browse all entries

Want this looked at on your own system?Start a conversation

5.0
“New shop, more orders in the first week.”Müller Márk · GeekCornerManaging Director · Hungary