Landscape material texture problem

I’ve set up a landscape material consisting of 4 textures, 3 being floor textures whilst one being a cliff/wall texture. I need to have the cliff texture stay horizontal across along all the walls of the environment but I get some parts being at different angles along the walls. Is there a way of fixing this easily or any sort of workaround. (I am using texture samples with material functions.)