Blended Box Mapping on Landscape material

Hi there, how would i establish a blended box mapping for a terrain rock texture?
could someone give me an example setup or a hint?
thank you in advance.

hey i just found out about a method of tri-planar mapping, that is already build into a material function.
it’s called “World aligned texture” and for the normal output it’s “world aligned normal”
just put its xyz output into your material slot and enjoy instant triplanar mapping…
just updated this old question, since i only just learned about it.
greets