Break up horizontal edge on height based material

Solved this by putting another slope calculation inside the snow layer.