Procedural texture which was use for the whole environment terrain.
Environment sand texture. This procedural texture works by first calculating the normals so it knows which texture to put on which face(if the faces are horizontal apply the sand texture mask, if a faces are vertical apply the rock texture mask)
The top node groups is a basic wave textured projected horizontally, to represent the side of cliffs. This can be change how many layers you want and how distorted you want the rocks the be .
Sand texture which allows you to adjust the scale, distortion of the sand waves and the detail of the sand grains
Here is a the first prototpye of the modular pieces, that didnt get used in the final render due to its dense topology, made by using procedural bricks displacements maps.