Class ChromaticAberrationPlugin

Chromatic Aberration Plugin Adds an extension to ScreenPass material for applying chromatic aberration effect on the final buffer before rendering to screen. The intensity of the aberration can be controlled with the intensity(previously aberrationIntensity) property.

Hierarchy (View Summary)

Constructors

Properties

__setDirty?: () => void
_dirty: boolean = false
_shaderPatch: string = 'diffuseColor = ChromaticAberration(diffuseColor);'
_viewer?: ThreeViewer
_viewerListeners: PartialRecord<
    | "dispose"
    | "*"
    | "update"
    | "preRender"
    | "postRender"
    | "preFrame"
    | "postFrame"
    | "addPlugin"
    | "removePlugin"
    | "renderEnabled"
    | "renderDisabled",
    (e: IViewerEvent) => void,
> = {}
constructor: typeof AScreenPassExtensionPlugin & typeof AViewerPluginSync & typeof AViewerPlugin
enabled: boolean
extraUniforms: { aberrationIntensity: { value: 1 } } = ...
intensity: number = 0.5
priority: number = -50

The priority of the material extension when applied to the material in ScreenPass set to very low priority, so applied at the end

uiConfig?: UiObjectConfig = undefined
OldPluginType?: string
PluginType: "ChromaticAberration" = 'ChromaticAberration'

Accessors

Methods