Class VignettePlugin

Vignette Plugin

Adds an extension to ScreenPass material for applying vignette effect on the final buffer before rendering to screen. The power of the vignette can be controlled with the power property. The color of the vignette can be controlled with the color(previously bgcolor) property.

Hierarchy (View Summary)

Constructors

Properties

__setDirty?: () => void
_dirty: boolean = false
_shaderPatch: string = 'diffuseColor = Vignette(diffuseColor);'
_viewer?: ThreeViewer
_viewerListeners: PartialRecord<
    | "dispose"
    | "*"
    | "update"
    | "preRender"
    | "postRender"
    | "preFrame"
    | "postFrame"
    | "addPlugin"
    | "removePlugin"
    | "renderEnabled"
    | "renderDisabled",
    (e: IViewerEvent) => void,
> = {}
color: Color = ...
constructor: typeof AScreenPassExtensionPlugin & typeof AViewerPluginSync & typeof AViewerPlugin
enabled: boolean
extraUniforms: { bgcolor: { value: Color }; power: { value: 1 } } = ...
power: 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: "Vignette" = 'Vignette'

Accessors

Methods