This is code I wrote with a partner for an assignment by modifying an NVIDIA example on ray-tracing.