API

Class BloomEffect

The bloom effect spreads bright areas of an image to simulate artifacts seen in cameras

Hierarchy (View Summary)

Index
  • Creates a new instance of

    Parameters

    • sceneOrEngine: Scene | AbstractEngine

      The scene or engine the effect belongs to.

    • bloomScale: number

      The ratio of the blur texture to the input texture that should be used to compute the bloom.

    • bloomWeight: number

      The strength of bloom.

    • bloomKernel: number

      The size of the kernel to be used when applying the blur.

    • pipelineTextureType: number = 0

      The type of texture to be used when performing the post processing.

    • blockCompilation: boolean = false

      If compilation of the shader should not be done in the constructor. The updateEffect method can be used to compile the shader at a later time. (default: false)

    Returns BloomEffect

    BloomEffect