Ahaha, so you implemented the reversed pipeline from the game, kinda. :D
It’s especially good that you handled 1->n transformations and managed to work around the loops.