[TUTORIAL] Triplanar material

Looks fantastic. Will this work with terrains as well; say the height is grass and the sides of the elevations are rock?