I lied, I couldn’t wait and tried it as soon as I got back home. Rest is for the wicked and can wait, amirite? ![]()
I simplified shader by a bit. For instance instead of distance to the camera we can just use the positional data on an axis (here it’s on Z). I dropped fixing Z component after scaling, because it wasn’t too noticeable if you’re not scaling close to camera (so it may clip), but if you need to, MakeFloat3 can be connected to Substract in “A” input.
Result in RenderTarget texture:

Scene Setup:

Hope this helps ![]()
Edit:
Also with a bit more complex mesh:

