Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including ao-mesher with all npm packages installed. Try it out:

var aoMesher = require("ao-mesher")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

ao-mesher v0.2.10

Voxel ambient occlusion mesher


A voxel mesher for ndarrays that handles ambient occlusion and transparency.


npm install ao-mesher


Constructs a mesh for array.

  • array is a 3D ndarray of voxels

Returns A uint8array encoding the mesh, or else null if there were no facets. This is in the same format that ao-shader expects.


(c) 2013 Mikola Lysenko. MIT License


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free