Function: addBloomComponent()
addBloomComponent(
world,entity,options?):BloomEcsComponent
Defined in: rendering/components/bloom-component.ts:52
Attaches a BloomEcsComponent to a camera entity, so
createBloomEcsSystem adds a glow around that camera's brightest pixels.
Has no effect if the entity's camera doesn't have a renderTarget.
Parameters
world
The ECS world entity belongs to.
entity
number
The camera entity to attach the bloom to.
options?
Partial<BloomEcsComponent> = {}
Options for configuring the bloom.
Returns
The attached component, for further tuning or runtime changes.