vertex-ao
v1.0.0
Published
Vertex based ambient occlusion computation for meshes
Maintainers
Readme
vertex-ao
Calculates vertex based ambient occlusion values for a triangular mesh.
Install
npm install vertex-aoExample
var bunny = require('bunny')
var ao = require('vertex-ao')(bunny.cells, bunny.positions, 2, 256)API
require('vertex-ao')(cells, positions, radius, samples)
Generates an ambient occlusion map for a mesh from the vertices of a mesh.
cellsare the cells of the meshpositionsare the positions of the vertices of the meshradiusis the radius of the ambient occlusion samplessamplesare the number of samples to take for each triangle
License
(c) 2017 MIT License. Mikola Lysenko
