Class ThinBloomEffect
Constructors
constructor
-
new ThinBloomEffect(
name: string,
engine: Nullable<AbstractEngine>,
scale: number,
blockCompilation?: boolean,
): ThinBloomEffectCreates a new instance of
Parameters
- name: string
The name of the bloom render effect
- engine: Nullable<AbstractEngine>
The engine which the render effect will be applied. (default: current engine)
- scale: number
The ratio of the blur texture to the input texture that should be used to compute the bloom.
- blockCompilation: boolean = false
If shaders should not be compiled when the effect is created (default: false)
Returns ThinBloomEffect
- name: string
Properties
Readonlyscale
scale: number
The ratio of the blur texture to the input texture that should be used to compute the bloom.
Accessors
kernel
-
get kernel(): number
Specifies the size of the bloom blur kernel, relative to the final output size
Returns number
-
set kernel(value: number): void
Parameters
- value: number
Returns void
threshold
-
get threshold(): number
The luminance threshold to find bright areas of the image to bloom.
Returns number
-
set threshold(value: number): void
Parameters
- value: number
Returns void
weight
-
get weight(): number
The strength of the bloom.
Returns number
-
set weight(value: number): void
Parameters
- value: number
Returns void
The bloom effect spreads bright areas of an image to simulate artifacts seen in cameras