Example for a simple raytracer (by Josh Marinacci). Michal Doniec pointed me to it.