Added rotation and translation to perspective example