Worked the whole day on the terrain shader. Now it is possible to add to each detailmap a normalmap. At the moment you can have up to 12 detailmaps + normalmaps + specularmaps (not integrated in shader yet).