Ray tracing and photon mapping