Class PrimitiveCube

A simple cube primitive with a given size

Hierarchy (View Summary)

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
    • OptionalmaterialOverride: Material
    • OptionalprogramOverride: ProgramInfo

    Returns void