Fog shader effect.

Hierarchy (view full)

Properties

speed: number = 1

The speed multiplier applied to animation. 0 stops animation.

initialUniforms: object

The initial values of the shader uniforms.

defaultUniforms: {
    intensity: number;
    rotation: number;
    slope: number;
} = ...

Default uniforms for a specific class

Type declaration

  • intensity: number
  • rotation: number
  • slope: number

Abstract

COMPUTE_MASK: string = ...

Compute the weather masking value.

FRAGMENT_HEADER: string = ...

Compute the weather masking value.

commonUniforms: {
    useOcclusion: boolean;
    occlusionTexture: any;
    reverseOcclusion: boolean;
    occlusionWeights: number[];
    useTerrain: boolean;
    terrainTexture: any;
    reverseTerrain: boolean;
    terrainWeights: number[];
    alpha: number;
    tint: number[];
    screenDimensions: [number, number];
    effectDimensions: [number, number];
    depthElevation: number;
    time: number;
} = ...

Common uniforms for all weather shaders.

Type declaration

  • useOcclusion: boolean
  • occlusionTexture: any
  • reverseOcclusion: boolean
  • occlusionWeights: number[]
  • useTerrain: boolean
  • terrainTexture: any
  • reverseTerrain: boolean
  • terrainWeights: number[]
  • alpha: number
  • tint: number[]
  • screenDimensions: [number, number]
  • effectDimensions: [number, number]
  • depthElevation: number
  • time: number
vertexShader: string = ...

The raw vertex shader used by this class. A subclass of AbstractBaseShader must implement the vertexShader static field.

Accessors

  • set scale(scale): void
  • Update the scale of this effect with new values

    Parameters

    • scale: number | {
          x: number;
          y: number;
      }

      The desired scale

    Returns void

Methods

  • Configure the number of octaves into the shaders.

    Parameters

    • mode: number

    Returns string

  • Configure the fog complexity according to mode (performance).

    Parameters

    • mode: number

    Returns string

  • Parameters

    • mode: any

    Returns string

    Inherit Doc