How to render staticmesh infront of only landscape !tram rails!?

@ClockworkOcean I’m sorry my question was not phrased well. What I try to achieve is, having the rails go into the landscape, but the landscape is of course clipping through them. How is it possible to render the rails, so that they appear to be in the ground, withouth having to manually carve them into the landscape? Like play with the custom depth stencil or something like that, but I could’t achieve that to a satisfactory state.