I want to mix two textures on a terrain so that I can make a tide mark. To do this I need to mix the textures with a gradient on the y axis but I can't seem to work out how to do this. I don't want to use Tripanar because then I will no longer have displacement and it's a terrain so it must have displacement. I was hoping that I can use the W Coordinate shader but every time I use it to try and create a vertical gradient it only ever gives me a black material. I managed to do something similar a while back in which I made a multi-layered rock pattern and used a gradient to create the stratum but I can't remember how I did it for the life of me.
Any help would be massively appreciated

Thanks!
Kraig.