I saw terrain rendering in this old video, but I couldn't find the code to it: https://www.youtube.com/watch?v=bYgSxoXgSU8 Maybe you have more luck.