Painting textures to terrain

I am trying to create a terrain and painting it with textures. Is there any way to paint textures so that there is a nice and clean border/edge between textures. Now when I paint textures they are sort of blended to each other.

Increase the control texture resolution for the terrain.

–Eric

Also play with the opacity of the brush.