A mesh of a Region.

Hierarchy

  • any
    • RegionMesh

Constructors

  • Create a RegionMesh.

    Parameters

    • region: Region

      The Region to create the RegionMesh from.

    • Optional shaderClass: AbstractBaseShader = RegionShader

      The shader class to use.

    Returns RegionMesh

Properties

_tintAlphaDirty: boolean

Used to track a tint or alpha change to execute a recomputation of _cachedTint.

_tintColor: Color = ...

The tint applied to the mesh. This is a hex value. A value of 0xFFFFFF will remove any tint effect.

_cachedTint: [red: number, green: number, blue: number, alpha: number] = ...

Cached tint value for the shader uniforms.

#SHARED_POINT: Point = ...

Shared point instance.

Accessors

  • get shader(): AbstractBaseShader
  • The shader bound to this RegionMesh.

    Returns AbstractBaseShader

  • get blendMode(): BLEND_MODES
  • The blend mode assigned to this RegionMesh.

    Returns BLEND_MODES

  • get tint(): number
  • The tint applied to the mesh. This is a hex value.

    A value of 0xFFFFFF will remove any tint effect.

    Returns number

    Default Value

    0xFFFFFF
    

Methods

  • Initialize shader based on the shader class type.

    Parameters

    • shaderClass: any

      The shader class, which must inherit from AbstractBaseShader.

    Returns void

  • Returns void

  • Parameters

    • renderer: any

    Returns void

  • Returns void

  • Tests if a point is inside this RegionMesh.

    Parameters

    • point: IPointData

    Returns boolean

  • Parameters

    • options: any

    Returns void