Add transformation of rays