Ib Green 7c9f422335 Capability management (#171)
* State and capability management

* Transform feedback fixes (updates to @gnavvy tf-feedback example_

* Documentation and Demo improvements
2017-05-29 08:49:24 -07:00
..
2017-05-29 08:49:24 -07:00
2017-05-29 08:49:24 -07:00

Geometry Module

A geometry holds a set of attributes (native JavaScript arrays) (vertices, normals, texCoords, indices) and a drawType.

Class Description
Geometry Base class, holds vertex attributes and drawType
ConeGeometry Vertex attributes for a cone
CubeGeometry Vertex attributes for a cube
IcoSphereGeometry Vertex attributes for an icosahedron
PlaneGeometry Vertex attributes for a plane
SphereGeometry Vertex attributes for a sphere
SphereGeometry Vertex attributes for a sphere

It should be fairly straightforward to use other primitives, e.g. from npm modules. As long as you have a number of attributes you can wrap them in a Geometry or set them directly on a Model or a Program.