Yes is really excellent! also I looked for this script from so much time
But I must ask a thing: if it is possible use this code, but without use the terrainmultitexturing shader, because I don't want to change the texture that my terrain has. I have created the texture with freeworld3d. however thank you for the contribution!

salva