The grid mesh, which uses the GridShader to render the grid.

Hierarchy (view full)

Constructors

  • The grid mesh constructor.

    Parameters

    • Optional shaderClass: typeof GridShader = GridShader

      The shader class

    Returns GridMesh

Properties

data: GridMeshData = ...

The data of this mesh.

#geometry: Geometry = ...

Geometry bound to this QuadMesh.

#state: State = ...

State bound to this QuadMesh.

Accessors

  • get blendMode(): BLEND_MODES
  • Assigned blend mode to this mesh.

    Returns BLEND_MODES

Methods

  • Initialize and update the mesh given the (partial) data.

    Parameters

    Returns GridMesh

  • Initialize shader based on the shader class type.

    Parameters

    • shaderClass: class

      Shader class used. Must inherit from AbstractBaseShader.

    Returns void

  • Parameters

    • renderer: any

    Returns void

  • Tests if a point is inside this QuadMesh.

    Parameters

    • point: IPointData

    Returns boolean

  • Parameters

    • options: any

    Returns void

  • Protected

    Initialize the data of this mesh given the (partial) data.

    Parameters

    Returns void