This image took a little over 3 hours to generate on my laptop. For some reason I thought it would be fun to write a compile time raytracer - that is write a program using C++ template metaprogramming that would raytrace a scene during the compilation process. Really it was fun, but it sure is slow. What is the point? Well... there isn't much of one other than trying to bend my mind around the sometimes obscure machinery that is C++ templates. In the end the metaprogramming wasn't all that complicated - mostly just lots of time spent waiting on the compiler and getting distracted by Uncharted 3 (fun game).

I might work on a longer post later explaining the workings of the code but for now I have just uploaded it to github should anyone want to take a look.