Class PrimitiveAbstract

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

Hierarchy (view full)

Implements

Constructors

Properties

bufferInfo: undefined | BufferInfo
material: Material
programInfo: ProgramInfo
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
    • Optional materialOverride: Material
    • Optional programOverride: ProgramInfo

    Returns void

Generated using TypeDoc