Another minor improvement. Basically the terrain grid should be mapped between 0,0 and 1,1 so that we can use the positions for texcoords too, and then use the terrain scale to modify.