Options
All
  • Public
  • Public/Protected
  • All
Menu

An interface for defining shader-based weather effects

param config

The config object to create the shader effect

Hierarchy

Index

Constructors

Methods

  • configure(config?: any): void
  • Set shader parameters.

    Parameters

    • config: any = {}

    Returns void

  • play(): void
  • Begin animation

    Returns void

  • stop(): void
  • Stop animation

    Returns void

  • setShaderClass(shaderCls: class): void
  • Initialize shader based on the shader class type.

    Parameters

    • shaderCls: class

      Shader class used. Must inherit from AbstractBaseShader.

    Returns void

  • _render(renderer: any): void
  • _calculateBounds(): void
  • containsPoint(point: IPointData): boolean
  • Tests if a point is inside this QuadMesh.

    Parameters

    • point: IPointData

    Returns boolean

  • destroy(...args: any[]): void
  • override

    Parameters

    • Rest ...args: any[]

    Returns void

  • _initialize(config: any): void
  • Initialize the weather effect.

    Parameters

    • config: any

      Config object.

    Returns void

Properties

visible: boolean
width: number
height: number
state: State
cullable: boolean

The shader.

_width: any
_height: any
#geometry: Geometry

Accessors

  • get geometry(): Geometry
  • set geometry(value: Geometry): void
  • Assigned geometry to this mesh. We need to handle the refCount.

    Returns Geometry

  • Assigned geometry to this mesh. We need to handle the refCount.

    Parameters

    • value: Geometry

    Returns void

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

    Returns BLEND_MODES

  • Assigned blend mode to this mesh.

    Parameters

    • value: BLEND_MODES

    Returns void