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

Implements

Constructors

Properties

__setDirty?: (() => void)

Type declaration

    • (): void
    • Returns void

_dirty: boolean = false
_rendererState: any = {}
_viewer?: ThreeViewer
constructor: typeof AViewerPluginSync & typeof AViewerPlugin
contrast: number
enabled: boolean = true
exposure: number = 1
extraDefines: {
    TONEMAP_BACKGROUND: "1";
} = ...

Extra defines to copy to material

Type declaration

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

Extra uniforms to copy to material

Type declaration

  • Readonly toneMappingContrast: {
        value: 1;
    }
    • Readonly value: 1
  • Readonly toneMappingSaturation: {
        value: 1;
    }
    • Readonly value: 1
parsFragmentSnippet: any = ...

Extra code to add to the top of the fragment shader Value can be a string or a function that returns a string

priority: -100 = -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