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 full)

Constructors

Properties

__setDirty?: (() => void)

Type declaration

    • (): void
    • Returns void

_dirty: boolean = false
_shaderPatch: string = 'diffuseColor = ChromaticAberration(diffuseColor);'
_viewer?: ThreeViewer
_viewerListeners: PartialRecord<"update" | "dispose" | "preRender" | "postRender" | "preFrame" | "postFrame" | "*" | "addPlugin" | "removePlugin" | "renderEnabled" | "renderDisabled", ((e) => void)> = {}

Type declaration

constructor: typeof AScreenPassExtensionPlugin & typeof AViewerPluginSync & typeof AViewerPlugin
enabled: boolean
extraUniforms: {
    aberrationIntensity: {
        value: 1;
    };
} = ...

Type declaration

  • Readonly aberrationIntensity: {
        value: 1;
    }
    • Readonly 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<any, string, any> = undefined
OldPluginType?: string
PluginType: "ChromaticAberration" = 'ChromaticAberration'

Accessors

Methods

Generated using TypeDoc