This Shader is Primarily for use in Blender 2.78+ As it uses the Adaptive SubDiv Displacement. This works really well with the Ant Landscape addon (just enable it in user pref's). It takes the Normal values and the 'Pointiness' of each mesh, maps the rock texture to faces where the normal value is Blue (Global Z axis) and the ground texture to the Red and Green (Global X/Y axis) Normal values.
DO NOT USE THIS ON HIGH POLY MESHES! You will kill your PC. It's best to use on meshes of 50k and less with the Adaptive sub set to Dicing scale 2+ and the global Geo set to 8 or less sub's and Dicing of 2 or more.
Have Fun :)