Class TonemapPlugin

Tonemap Plugin

Adds an extension to ScreenPass material for applying tonemapping on the final buffer before rendering to screen.

Also adds support for Uncharted2 tone-mapping.

Hierarchy (view full)

Constructors

Properties

__setDirty?: (() => void)

Type declaration

    • (): void
    • Returns void

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

Type declaration

constructor: typeof AScreenPassExtensionPlugin & typeof AViewerPluginSync & typeof AViewerPlugin
contrast: number
enabled: boolean = true
exposure: number = 1
extraDefines: {
    TONEMAP_BACKGROUND: "1";
} = ...

Type declaration

  • Readonly TONEMAP_BACKGROUND: "1"
extraUniforms: {
    toneMappingContrast: {
        value: 1;
    };
    toneMappingSaturation: {
        value: 1;
    };
} = ...

Type declaration

  • Readonly toneMappingContrast: {
        value: 1;
    }
    • Readonly value: 1
  • Readonly toneMappingSaturation: {
        value: 1;
    }
    • Readonly value: 1
priority: number = -100

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

saturation: number
toneMapping: ToneMapping = ACESFilmicToneMapping
tonemapBackground: boolean = true
uiConfig?: UiObjectConfig<any, string, any> = undefined
PluginType: "Tonemap" = 'Tonemap'

Accessors

Methods

Generated using TypeDoc