Cosmic light rays in space