three.js extension to generate perlin terrain