Advice on how best to implement custom lens distortion

postprocessing
shaders

#1

Hey guys, first time user of the forum.

I have been asked to implement a custom lens distortion. What I have been given is a CSV file that has values like the following:

0,0,-120.639,14.2085
0,16,-118.095,27.1749
0,32,-115.557,40.2065
0,48,-113.028,53.3148
0,64,-110.51,66.5098
0,80,-108.0057,79.7996
0,96,-105.5168,93.191
0,112,-103.045,106.69

where the first two values are the “regular” x,y coordinates and the second two values are the “distorted” x, y coordinates.

How best to go about this?

I would want this to be applied as a Post Process, ideally on a split screen.