Skip to main content

Class: TonemapPlugin

Plugins.TonemapPlugin

Hierarchy

  • GenericExtensionPlugin<TonemapExtension>

    TonemapPlugin

Implements

Properties

PluginType

Static Readonly PluginType: "Tonemap"

Defined in

webgi/src/plugins/threejs/TonemapPlugin.ts:166


enabled

enabled: boolean = true

Inherited from

GenericExtensionPlugin.enabled

Defined in

webgi/src/plugins/GenericExtensionPlugin.ts:14


dependencies

dependencies: typeof CombinedPostPlugin[]

Inherited from

GenericExtensionPlugin.dependencies

Defined in

webgi/src/plugins/GenericExtensionPlugin.ts:16


depthTonemap

Readonly depthTonemap: boolean = true


_dirty

Protected _dirty: boolean = false

Inherited from

GenericExtensionPlugin._dirty

Defined in

webgi/src/core/AViewerPlugin.ts:25


_viewer

Protected Optional _viewer: ViewerApp

Inherited from

GenericExtensionPlugin._viewer

Defined in

webgi/src/core/AViewerPlugin.ts:29


_extension

Protected Optional _extension: TonemapExtension

Inherited from

GenericExtensionPlugin._extension

Defined in

webgi/src/plugins/GenericExtensionPlugin.ts:10

Accessors

dirty

get dirty(): boolean

Returns

boolean

Inherited from

GenericExtensionPlugin.dirty

Defined in

webgi/src/core/AViewerPlugin.ts:18

set dirty(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

GenericExtensionPlugin.dirty

Defined in

webgi/src/core/AViewerPlugin.ts:22


uiConfig

get uiConfig(): undefined | UiObjectConfig<any, string>

Returns

undefined | UiObjectConfig<any, string>

Inherited from

GenericExtensionPlugin.uiConfig

Defined in

webgi/src/plugins/GenericExtensionPlugin.ts:18


config

get config(): undefined | T

Returns

undefined | T

Inherited from

GenericExtensionPlugin.config

Defined in

webgi/src/plugins/GenericExtensionPlugin.ts:22


exposure

get exposure(): number

Returns

number

Defined in

webgi/src/plugins/threejs/TonemapPlugin.ts:193

set exposure(value): void

Parameters

NameType
valuenumber

Returns

void

Defined in

webgi/src/plugins/threejs/TonemapPlugin.ts:197


toneMapping

get toneMapping(): ToneMapping

Returns

ToneMapping

Defined in

webgi/src/plugins/threejs/TonemapPlugin.ts:203

set toneMapping(value): void

Parameters

NameType
valueToneMapping

Returns

void

Defined in

webgi/src/plugins/threejs/TonemapPlugin.ts:207

Methods

onDispose

onDispose(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Inherited from

GenericExtensionPlugin.onDispose

Defined in

webgi/src/core/AViewerPlugin.ts:38


toJSON

toJSON(meta?): any

Parameters

NameType
meta?any

Returns

any

Inherited from

GenericExtensionPlugin.toJSON

Defined in

webgi/src/core/AViewerPlugin.ts:47


addEventListener

addEventListener(type, listener): void

Parameters

NameType
type"" | "serialize" | "deserialize"
listener(event: IEvent<"" | "serialize" | "deserialize">) => void

Returns

void

Inherited from

GenericExtensionPlugin.addEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:48


hasEventListener

hasEventListener(type, listener): boolean

Parameters

NameType
type"" | "serialize" | "deserialize"
listener(event: IEvent<"" | "serialize" | "deserialize">) => void

Returns

boolean

Inherited from

GenericExtensionPlugin.hasEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:56


removeEventListener

removeEventListener(type, listener): void

Parameters

NameType
type"" | "serialize" | "deserialize"
listener(event: IEvent<"" | "serialize" | "deserialize">) => void

Returns

void

Inherited from

GenericExtensionPlugin.removeEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:63


dispatchEvent

dispatchEvent(event): void

Parameters

NameType
eventIEvent<"" | "serialize" | "deserialize">

Returns

void

Inherited from

GenericExtensionPlugin.dispatchEvent

Defined in

webgi/src/helpers/EventDispatcher.ts:74


disposeExtension

disposeExtension(): void

Returns

void

Inherited from

GenericExtensionPlugin.disposeExtension

Defined in

webgi/src/plugins/GenericExtensionPlugin.ts:28


onRemove

onRemove(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Inherited from

GenericExtensionPlugin.onRemove

Defined in

webgi/src/plugins/GenericExtensionPlugin.ts:38


fromJSON

fromJSON(data, meta?): null | TonemapPlugin | Promise<null | TonemapPlugin>

Parameters

NameType
dataany
meta?any

Returns

null | TonemapPlugin | Promise<null | TonemapPlugin>

Overrides

GenericExtensionPlugin.fromJSON

Defined in

webgi/src/plugins/threejs/TonemapPlugin.ts:174


onAdded

onAdded(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Overrides

GenericExtensionPlugin.onAdded

Defined in

webgi/src/plugins/threejs/TonemapPlugin.ts:184


generateExtension

generateExtension(viewer): TonemapExtension

Parameters

NameType
viewerViewerApp

Returns

TonemapExtension

Overrides

GenericExtensionPlugin.generateExtension

Defined in

webgi/src/plugins/threejs/TonemapPlugin.ts:189


updateGBuffer

updateGBuffer(object, data): void

Parameters

NameType
objectObject3D<Event>
dataVector4

Returns

void

Implementation of

IGBufferUpdater.updateGBuffer

Defined in

webgi/src/plugins/threejs/TonemapPlugin.ts:214

Constructors

constructor

new TonemapPlugin(depthTonemap?)

Parameters

NameTypeDefault value
depthTonemapbooleantrue

Overrides

GenericExtensionPlugin<TonemapExtension\>.constructor

Defined in

webgi/src/plugins/threejs/TonemapPlugin.ts:168