kindred-geometry
Load, bind and draw geometry data in WebGL.
const Geometry =const shader =const icosphere =const bunny =const geom ={geomgeom}
Usage
geom = Geometry(cells, positions, normals, uvs)
geom.attr(name, data, opts)
geom.attrFaceNormals(name)
geom.attrVertNormals(name)
geom.bind(gl, attributes)
geom.draw(gl, primitive)
geom.dipose()
License
MIT. See LICENSE.md for details.