Been thinking on this for a while, pretty happy with how it turned out but could be a lot cleaner. Will probably revisit eventually. Shout out to AnonChunk on their guide to fixing textures, helped a lot!