Rename ray generating function.