JavaScript
Latest commit 86d6687 Jan 10, 2013 @maxogden string seeds
Failed to load latest commit information.
textures
.gitignore initial checkin Jan 9, 2013
Makefile initial checkin Jan 10, 2013
demo.js string seeds Jan 9, 2013
index.html
index.js string seeds Jan 10, 2013
package.json string seeds Jan 10, 2013
readme.md initial checkin Jan 10, 2013
test.js

readme.md

voxel-simplex-terrain

generate voxel terrain using simplex noise

uses the awesome simplex-noise library from @jwagner

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