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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1
  • 0.0.5
    0
  • 0.0.4
    0
  • 0.0.2
    0

Package Sidebar

Install

npm i voxel-perlin-terrain

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • maxogden