Smallpt: Global Illumination in 99 lines of C++ (with no external deps)
kevinbeason.com
kevinbeason.com
Edit: That said, I'm still impressed.
'erand48': identifier not found
'M_PI' : undeclared identifier
Obviously #define M_PI 3.1415926 should do the trick, but I need to track down an erand48 replacement.Or the FreeBSD source: http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/gen/erand...
http://www.opengroup.org/onlinepubs/000095399/functions/eran...