Class PrimitivePlane

A simple plane primitive with a given size, subdivisions & tiling factor

Hierarchy (view full)

Constructors

Properties

Accessors

Methods

Constructors

  • Create a new plane primitive

    Parameters

    • gl: WebGL2RenderingContext

      WebGL2RenderingContext

    • width: number

      Width of the plane

    • height: number

      Height of the plane

    • subdivisionsW: number

      Number of horizontal subdivisions

    • subdivisionsH: number

      Number of vertical subdivisions

    • tilingFactor: number

      Number of times to tile the texture across the plane

    Returns PrimitivePlane

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
    • Optional materialOverride: Material
    • Optional programOverride: ProgramInfo

    Returns void

Generated using TypeDoc