Class PrimitiveAbstract

A simple primitive 3D object, like a sphere or cube

Hierarchy (View Summary)

Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

bufferInfo: undefined | BufferInfo
material: Material
triangles: number

Accessors

Methods

  • Render is used draw this primitive, this is called from the Instance that wraps this renderable.

    Parameters

    • gl: WebGL2RenderingContext
    • uniforms: UniformSet
    • OptionalmaterialOverride: Material
    • OptionalprogramOverride: ProgramInfo

    Returns void