Terrain texturing in Cycles

Hi. I recorded tutorial on how to painting big terrain in Cycles. In this method we will create several layers (grass, sand, snow etc.) and we will paint mask for them.