The filter used by the weather layer to mask weather above occluded roofs.

Hierarchy (View Summary)

Constructors

  • Parameters

    • OptionalvertexSrc: string

      The source of the vertex shader.

    • OptionalfragmentSrc: string

      The source of the fragment shader.

    • Optionaluniforms: Dict<any>

      Custom uniforms to use to augment the built-in ones.

    Returns WeatherOcclusionMaskFilter

Properties

elevation: number = Infinity

Elevation of this weather occlusion mask filter.

defaultUniforms: {
    depthElevation: number;
    occlusionTexture: null;
    occlusionWeights: number[];
    reverseOcclusion: boolean;
    reverseTerrain: boolean;
    sceneAnchor: number[];
    sceneDimensions: number[];
    terrainTexture: null;
    terrainUvMatrix: Matrix;
    terrainWeights: number[];
    useOcclusion: boolean;
    useTerrain: boolean;
} = ...
fragmentShader: string = ...
vertexShader: string = ...

Methods

  • Parameters

    • filterManager: any
    • input: any
    • output: any
    • clear: any
    • currentState: any

    Returns void

  • A factory method for creating the filter using its defined default values.

    Parameters

    • OptionalinitialUniforms: object = {}

      Initial uniform values which override filter defaults

    Returns AbstractBaseFilter

    The constructed AbstractFilter instance.