Skip to main content

Class: TonemapPass

Extra-Helpers.TonemapPass

Hierarchy

Properties

DEFAULT_TEX_ID

Static Readonly DEFAULT_TEX_ID: "tDiffuse"

Inherited from

ShaderPass2.DEFAULT_TEX_ID

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:137


onDirty

onDirty: () => void[] = []

Inherited from

ShaderPass2.onDirty

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:136


isShaderPass2

isShaderPass2: boolean = true

Inherited from

ShaderPass2.isShaderPass2

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:139


enabled

enabled: boolean = true

Inherited from

ShaderPass2.enabled

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:142


uiConfig

Optional uiConfig: UiObjectConfig<any> = undefined

Defined in

webgi/src/passes/threejs/TonemapPass.ts:27


toneMapping

toneMapping: ToneMapping = ACESFilmicToneMapping

Defined in

webgi/src/passes/threejs/TonemapPass.ts:39


tonemapBackground

tonemapBackground: boolean = true

Defined in

webgi/src/passes/threejs/TonemapPass.ts:41


clipBackground

clipBackground: boolean = false

Defined in

webgi/src/passes/threejs/TonemapPass.ts:44


exposure

exposure: number = 1

Defined in

webgi/src/passes/threejs/TonemapPass.ts:47

Methods

dispose

dispose(): void

Returns

void

Inherited from

ShaderPass2.dispose

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:149


setDirty

setDirty(): void

Returns

void

Inherited from

ShaderPass2.setDirty

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:155


updateShaderProperties

updateShaderProperties(updater?): void

Parameters

NameType
updater?IShaderPropertiesUpdater | (undefined | IShaderPropertiesUpdater)[]

Returns

void

Inherited from

ShaderPass2.updateShaderProperties

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:159


render

render(renderer, writeBuffer, readBuffer, deltaTime, maskActive): void

Parameters

NameType
rendererWebGLRenderer
writeBufferWebGLRenderTarget
readBufferWebGLRenderTarget
deltaTimenumber
maskActiveboolean

Returns

void

Overrides

ShaderPass2.render

Defined in

webgi/src/passes/threejs/TonemapPass.ts:77

Constructors

constructor

new TonemapPass(useDepth?, screenShaderMain?, screenShaderPars?)

Parameters

NameTypeDefault value
useDepthbooleanfalse
screenShaderMainstring''
screenShaderParsstring''

Overrides

ShaderPass2.constructor

Defined in

webgi/src/passes/threejs/TonemapPass.ts:49