voxel-perlin-terrain

generate voxel terrain using perlin noise

npm install voxel-perlin-terrain
1 downloads in the last day
3 downloads in the last week
31 downloads in the last month

voxel-perlin-terrain

generate voxel terrain using perlin noise

this is designed to work out of the box with voxel-engine

install

npm install voxel-perlin-terrain

api

var terrain = require('voxel-perlin-terrain')

// initialize your noise, returns a function
var chunkSize = 32
var chunkDistance = 2
var generator = terrain(chunkDistance, chunkSize)

// the returned function is for getting specific chunks
var chunkData = generator([0,0,0], [32,32,32])

chunk data is returned in the format of the voxel module

license

BSD

npm loves you