Optional
__setProtected
_dirtyPrivate
_rendererProtected
Optional
_viewerReadonly
extraExtra defines to copy to material
Readonly
TONEMAP_Readonly
extraExtra uniforms to copy to material
Readonly
toneReadonly
value: 1Readonly
toneReadonly
value: 1Extra code to add to the top of the fragment shader Value can be a string or a function that returns a string
Readonly
priorityThe priority of the material extension when applied to the material in ScreenPass set to very low priority, so applied at the end
Optional
uiStatic
Readonly
PluginProtected
_storeOptional
meta: anyCustom callback to run code after the material is rendered
Executes from material.onAfterRender
for each material for each object it's rendered on.
Custom callback to run code before the material is rendered
Executes from material.onBeforeRender
for each material for each object it's rendered on.
Custom callback to extend/modify/replace shader code and other shader properties
Optional
meta: SerializationMetaTypeGenerated using TypeDoc
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.