terrain textureing

I’m using NeHe’s terrain renderer… and its pretty good… but, now i have to work on textureing, what im going to do is put a simple colormap over the whole thing then tile a detail texture over the top, jsut like planetside’s terrain, but, how would i overlay 1 texture over the whole terrain?


you can use the terrain vertex coordinates (x and z/y)as texture coordinates, multiplied by a factor.