WIP code for SDK distortion rendering

Not working yet