There is already a Shader added to the terrain in my program for the detailmaps (terr_hlsl_1.fx). If you want this things you have to change this shader. For shaders i am not really good, have also some problems till this shader was working. Maybee someone can help you in the "Shaders" section here in the forum.