cant displace interseting verts with depth fade

i want to push the verts of a model out when they intersect with another mesh. i was planing on using the depth fade node in a material to find the edge and displacement it but it gives the error:
[SM5] (Node DepthFade) invalid node used in vertex/hull/domain shader input!

is there another/better way of doing this?
any help would be great,
thanks,
Ivy

Hi!

Displacement require a vertex shader data, and Scene, Pixel, Fade and other nodes and expressions, which calculate Depth on output have a Pixel Shader Data. They not compatible, and UE4 can not convert it on the fly. I do not find any simple solution. I think it is required C++ code.