Spherize in Viewport

I’m trying to replicate the spherizing behavior as shown in From Ants To Outer Space | Inside Unreal - YouTube at min 13.
I got the Spherical Shader package and it works when I start up the project. But I currently need to replicate that behavior in viewport when i zoom out from a landscape and into space. I noticed that the video contains a node called mf_cameraIntoSpace which I suspect is responsible for activating the shader itself. Could anyone perhaps explain how I could go about creating a node like that? Thank you.

The gist of the spherical distortion trick is that you shift down the vertices according to camera position, with the World Position Offset. Which means your mesh must be reasonably high poly for this to work, otherwise the mesh won’t bend properly.

Now, I don’t make space game, but here’s my implementation of the spherical distortion shader. I can’t guarantee this will work in space level, but in my case, this works for plane altitude.