This is actually something Im planning to do! But yes it will be a large undertaking. The plan right now is to have the game automatically group layers and render them to separate textures which can then be distorted individually.
Sort of like live2d.
But it will be a lot of work so Im hesitant to start it now as Im currently in the process of moving!