ShaderTerrainMesh terrain engine draw road

ok but i search a solution for apply texture by heightmap,

like this for example, Is it possible to do it with a shader ?

in this example i want to apply water texture in black color

Because i generated my terrain with noise perlin