First working version of light rays.