Class PrimitiveSphere

A simple sphere primitive with a given radius and subdivisions

Hierarchy (view full)

Constructors

Properties

Accessors

Methods

Constructors

  • Create a new sphere primitive

    Parameters

    • gl: WebGL2RenderingContext

      WebGL2RenderingContext

    • radius: number

      Radius of the sphere

    • subdivisionsH: number

      Number of horizontal subdivisions

    • subdivisionsV: number

      Number of vertical subdivisions

    Returns PrimitiveSphere

Properties

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