va
vertex-ao
npm i vertex-ao
va

vertex-ao

Vertex based ambient occlusion calculation for meshes

by Mikola Lysenko

1.0.0 (see all)License:MITTypeScript:Not Found
npm i vertex-ao
Readme

vertex-ao

Calculates vertex based ambient occlusion values for a triangular mesh.

Install

npm install vertex-ao

Example

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.

  • cells are the cells of the mesh
  • positions are the positions of the vertices of the mesh
  • radius is the radius of the ambient occlusion samples
  • samples are the number of samples to take for each triangle

License

(c) 2017 MIT License. Mikola Lysenko

Downloads/wk

5

GitHub Stars

50

LAST COMMIT

5yrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
1.0.0
latest
5yrs ago
No alternatives found
No tutorials found
Add a tutorial