Include landscape painting in material

What do I need to add in order to be able to also paint the landscape by hand as well?
For example I tried to paint gravel with layerinfo and this happened.

Solution found…by me:
tutorial: