An interface for defining shader-based weather effects

Param: config

The config object to create the shader effect

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

  • Set shader parameters.

    Parameters

    • Optional config: object = {}

    Returns void

  • Begin animation

    Returns void

  • Stop animation

    Returns void

  • 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 weather effect.

    Parameters

    • config: object

      Config object.

    Returns void