Path Tracer (Nim) ported from: http://xania.org/201505/two-commutes-with-rust https://github.com/mattgodbolt/path-tracer