Ground slope paint restriction for landscape?

Is there way to get similar behavior for landscape layer painting that foliage system already has. It would be great to paint rock layer only for steep slopes. Currently we are using rendering material that simulate this but this does not work for physic material and it waste precious texture slots on mobile.

“Ground Slope:
If non-zero, if the surface you are painting on is steeper than this angle, no foliage instances will be placed. A negative value will place foliage instances only on surfaces steeper than the angle specified.”

This is the gist

I’m sure you figured it out by now but anyone else looking for answers, the video is a great tutorial