Ray tracing revised