A basic rectangular mesh with a shader only. Does not natively handle textures (but a bound shader can). Bounds calculations are simplified and the geometry does not need to handle texture coords.

Param: shaderClass

The shader class to use.

Hierarchy (view full)

Properties

#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 shader based on the shader class type.

    Parameters

    • shaderClass: class

      Shader class used. Must inherit from AbstractBaseShader.

    Returns void

  • Parameters

    • renderer: any

    Returns void

  • Returns void

  • Tests if a point is inside this QuadMesh.

    Parameters

    • point: IPointData

    Returns boolean

  • Parameters

    • options: any

    Returns void