Socket
Book a DemoInstallSign in
Socket

vertex-ao

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vertex-ao

Vertex based ambient occlusion computation for meshes

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

vertex

FAQs

Package last updated on 22 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts