Skip to main content

Function: addGaussianBlurComponent()

addGaussianBlurComponent(world, entity, options?): GaussianBlurEcsComponent

Defined in: rendering/components/gaussian-blur-component.ts:46

Attaches a GaussianBlurEcsComponent to a camera entity, so createGaussianBlurEcsSystem blurs that camera's renderTarget. Has no effect if the entity's camera doesn't have a renderTarget.

Parameters

world

EcsWorld

The ECS world entity belongs to.

entity

number

The camera entity to attach the blur to.

options?

Partial<GaussianBlurEcsComponent> = {}

Options for configuring the blur.

Returns

GaussianBlurEcsComponent

The attached component, for further tuning or runtime changes.