You can now connect the distance fade logic to the rest of the gaph. First add two Linear Interpolate (Lerp) nodes to the graph. The Alpha input on the Lerp nodes will drive the transition between the two textures. Finish wiring up the Material as shown below.