Ray tracing code from 2006