Tri-planar terrain texturing?

Are there any good tutorials on how to setup a Tri-planar texture that also works with sculpting, or can someone give me some suggestions on how to set that up? As an example; say you have a flat terrain that has a grass texture. When you sculpt with a brush the elevation moves up, and the top of the sculpt is grass and the slope on the sides are rock.

Thanks.

I think you can see an example of that in the vehicle demo -> but I’m not 100% sure :slight_smile:

I seem to remember there being a triplanar material in there as well.