BloomLayerInfo

class Communicator.BloomLayerInfo()

Describes a single layer in the bloom effect.

See View.setBloomLayers


Properties

BloomLayerInfo.blurInterval
Type

(number, BlurIntervalUnit) optional

The distance between samples taken during the Gaussian blur operation executed when rendering this layer.

The BlurIntervalUnit.Pixels unit is interpreted based on the dimensions of the current layer, which are half the dimensions of the previous layer (or the source image if this is the first layer).

Using [1, Pixels] will ensure that each pixel in the previous layer contributes to the current layer, but will cause the bloom size to be dependent on the canvas size. It may therefore be advisable to adjust the interval using BlurIntervalUnit.Pixels and translate it to one of the other units. This has been done for the default settings.

If unspecified, the value will be [1, Pixels].

BloomLayerInfo.blurSamples
Type

number optional

The number of samples taken in each of the two passes of the Gaussian blur operation executed when rendering this layer.

If unspecified, the value will be 9.

BloomLayerInfo.intensity
Type

number optional

A number used to scale the contribution of the layer to the image. Can be greater than 1.

If unspecified, the value will be 1.

See View.setBloomIntensityScale