Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / components / Postprocessing

Class: Postprocessing

Defined in: components/Postprocessing.ts:431

Postprocessing stack settings (depth-of-field, bloom, vignette, chromatic aberration, noise, pixelation, tone mapping, hue/saturation, sepia, SMAA,

Use world.getPostprocessingComponent() to access this component directly from a Behaviour script. Mutate values to toggle effects or adjust parameters at runtime; PostprocessingSyncSystem applies changes next frame. SSAO, dot-screen, glitch). The render system applies enabled effects in a postprocessing-library composer when postEnabled is true. Singleton- style — attached to one entity per scene.

Extends

Constructors

Constructor

ts
new Postprocessing(values?): Postprocessing;

Defined in: components/Postprocessing.ts:435

Parameters

ParameterType
values?Partial<PostprocessingState>

Returns

Postprocessing

Overrides

Component.constructor

Properties

PropertyTypeDescriptionDefined in
valuesPostprocessingStateAggregated post-processing state. Saved with the project.components/Postprocessing.ts:433