Simple refraction with chromatic aberration

Any idea how to make this work? Some more insight into the Pingpong function would help!