BumpOffset node inside Custom node

Hi folks and supporters of Unreal Engine,

I was wondering how can I write the nodes from the image below inside a custom node?
I don’t seem to find a lot of documentation, so yeah…

The reason I want this inside a custom node is because I want to use a loop with a step count to create the feeling of depth.

You can check HLSL Code to see how they do it,then rewrite that in your Custom Node.