You can find a terrain shader with an rgb blendmap in the wiki, but it requires vs 1.1 and ps 1.3.