voxel-perlin-terrain

1.0.0 • Public • Published

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

/voxel-perlin-terrain/

    Package Sidebar

    Install

    npm i voxel-perlin-terrain

    Weekly Downloads

    7

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • maxogden