Calculates vertex based ambient occlusion values for a triangular mesh.
npm install vertex-ao
var bunny = require('bunny')
var ao = require('vertex-ao')(bunny.cells, bunny.positions, 2, 256)
require('vertex-ao')(cells, positions, radius, samples)Generates an ambient occlusion map for a mesh from the vertices of a mesh.
cells are the cells of the meshpositions are the positions of the vertices of the meshradius is the radius of the ambient occlusion samplessamples are the number of samples to take for each triangle(c) 2017 MIT License. Mikola Lysenko