how to generate the slope texture automatically and correctly in landscape material?

i saw the landscape material beneath few days ago,and learnt that generating grass and rock automatically by WorldAlignedBlend node,but the rock texture is stretched.It’s said that using texturing function but i dont know which node is and how to use it?anybody know that?and i wanna know that how to generate foliages on one layer either.and i’m sorry if there are some grammar issues since im not a native speaker of english:)

You have to use the WorldAlignedTexture Node. This generates a Triplanar Texture which results in a non-stretched texture.
For automatically generating Foliage, use the LandscapeGrassOutput node within your material and use your sampled Layer as an input.

thanks a lot, it works:)