it kinda works! Totally wrong (probably in the equation where I set u v coordinates (drawTexture? somethingl ike that) based on input), but something appears that almost looks right so yay!
Its also surprisingly non-slow.