Note: The mixmap shader supports 4 diffuse textures in the mix, this tutorial covers how to make a mixmap using all 4 channels. However you do not have to use 4 textures and can instead use 3 or 2, it is simply a matter of not painting the unused channels into the mixmap, and using a pure black texture in the corresponding texture slots in the shader.
Note: Make sure your base diffuse texture has a black/grey-coloured alpha channel.
Note: All layers are multiply blended.