Tangentially, here's an explainer on how the original SNES Mode7 actually worked, with excellent animations demonstrating the input, settings, and output:
https://www.youtube.com/watch?v=3FVN_Ze7bzw
(I highly recommend the entire channel, Retro Game Mechanics Explained, https://www.youtube.com/@RGMechEx, for top-notch content)