Ray tracing tested and debugged.