Class PrimitiveCube

A simple cube primitive with a given size

Hierarchy (view full)

Constructors

Properties

Accessors

Methods

Constructors

Properties

bufferInfo: undefined | BufferInfo
material: Material
size: number
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