Class PrimitivePlane

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

Hierarchy (View Summary)

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

    Returns void