Very cool man, I can't see your code on my phone screen but I'm guessing Perlin Noise for the height map with something to colour it based on height. I made something like this for my current game project but only in 2d as I'm going for a top down look. You should try wrapping your map around a sphere, that would look awesome. :)
RE: Infinite Terrain Generator Demonstration