Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ao-shader

mikolalysenko36MIT0.3.0

Ambient occlusion capable shader for ao-mesher

voxel, ambient, occlusion, shader, webgl, ndarray

readme

ao-shader

Shader for use with ao-mesher.

Example

Check it out in your browser.

Install

npm install ao-shader

var shader = require("ao-shader")(gl)

Creates a shader in the WebGL context.

  • gl is the WebGL context to create the shader in

Returns A GLShader object which wraps a WebGL program

Credits

(c) 2013 Mikola Lysenko. MIT License