Basis for image rendering by casting rays