A png to heightmap plugin for Voxel.js
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
png.js
.gitignore
README.md
index.js
package.json

README.md

Convert pngs to heightmaps in Voxel.js! For example:

var heightmap = require('png-heightmap')

var chunkDistance = 2
var chunkSize = 32

heightmap('simple_sf.png', chunkDistance * 2 * chunkSize , function(err, pngGenerate) {
  var game = createGame({
    generate: pngGenerate
  })
})