Function: addToneMappingComponent()
addToneMappingComponent(
world,entity,options?):ToneMappingEcsComponent
Defined in: rendering/components/tone-mapping-component.ts:45
Attaches a ToneMappingEcsComponent to a camera entity, so
createToneMapEcsSystem compresses that camera's HDR render target back
into displayable [0, 1] range. 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 tone mapping to.
options?
Partial<ToneMappingEcsComponent> = {}
Options for configuring the tone mapping.
Returns
The attached component, for further tuning or runtime changes.