0.0.3 • Published 11 years ago

voxel-simplex-terrain v0.0.3

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

voxel-simplex-terrain

generate voxel terrain using simplex noise

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

install

npm install voxel-simplex-terrain

api

var terrain = require('voxel-simplex-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

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago