This is the first step in adding transform support for other primitive types,
as well as optimizing the performance of the 3d transform shader.