Slopemask - how does it work for landscape materials?

Hi all

Trying to get my head around how the slopemask node works. I want to limit an adornment (grass etc.) to surfaces that are flat, or close to flat. But no combination of inputs seems to work.

Anyone help?

thanks

M