Constructs a new tone mapping effect.
The additional parameters only affect the Reinhard2 operator.
Optionaloptions: { The options.
OptionaladaptationThe luminance adaptation rate.
Optionaladaptive?: booleanDeprecated. Use mode instead.
OptionalaverageThe average luminance. Used for the non-adaptive Reinhard operator.
OptionalblendThe blend function of this effect.
OptionalmaxDeprecated. Same as whitePoint.
OptionalmiddleThe middle grey factor.
OptionalminThe minimum luminance. Prevents very high exposure in dark scenes.
Optionalmode?: ToneMappingModeThe tone mapping mode.
Optionalresolution?: numberThe resolution of the luminance texture. Must be a power of two.
OptionalwhiteThe white point.
ReadonlyblendThe blend mode of this effect.
ReadonlydefinesPreprocessor macro definitions.
Call Effect.setChanged after changing macro definitions.
ReadonlyextensionsWebGL extensions that are required by this effect.
Call Effect.setChanged after adding or removing extensions.
The name of this effect.
ProtectedrendererThe renderer.
ReadonlyuniformsShader uniforms.
Call Effect.setChanged after adding or removing uniforms.
The luminance adaptation rate.
Indicates whether this pass uses adaptive luminance.
The adaptive luminance material.
The average luminance.
Only applies to Reinhard2 (Modified).
ExperimentalThe input color space.
Protected ExperimentalSets the main camera.
Sets the main scene.
The middle grey factor. Default is 0.6.
Only applies to Reinhard2 (Modified & Adaptive).
The tone mapping mode.
ExperimentalThe output color space.
Should only be changed if this effect converts the input colors to a different color space.
Protected ExperimentalThe resolution of the luminance texture. Must be a power of two.
The white point. Default is 16.0.
Only applies to Reinhard2 (Modified & Adaptive).
Adds a listener to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Fire an event type.
Performs a shallow search for properties that define a dispose method and deletes them.
The EffectComposer calls this method when it is being destroyed.
Returns the adaptive luminance material.
The material.
Returns the effect attributes.
The attributes.
Returns the WebGL extensions that are required by this effect.
The extensions.
Returns the current tone mapping mode.
The tone mapping mode.
Checks if listener is added to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Removes a listener from an event type.
The type of the listener that gets removed.
The listener function that gets removed.
ProtectedsetProtectedSets the effect attributes.
Effects that have the same attributes will be executed in the order in which they were registered. Some attributes imply a higher priority.
The attributes.
ProtectedsetProtectedInforms the associated EffectPass that this effect requires a shader recompilation.
Should be called after changing macros or extensions and after adding/removing uniforms.
Sets the depth texture.
You may override this method if your effect requires direct access to the depth texture that is bound to the associated EffectPass.
A depth texture.
OptionaldepthPacking: DepthPackingStrategiesThe depth packing.
ProtectedsetSets the tone mapping mode.
The tone mapping mode.
Updates the size of this effect.
You may override this method if you want to be informed about the size of the backbuffer/canvas. This method is called before initialize and every time the size of the EffectComposer changes.
The width.
The height.
ProtectedsetUpdates this effect.
The renderer.
A frame buffer that contains the result of the previous pass.
OptionaldeltaTime: numberThe time between the last frame and the current one in seconds.
A tone mapping effect.
Note:
ToneMappingMode.REINHARD2_ADAPTIVErequires support forEXT_shader_texture_lod.Reference: GDC2007 - Wolfgang Engel, Post-Processing Pipeline http://perso.univ-lyon1.fr/jean-claude.iehl/Public/educ/GAMA/2007/gdc07/Post-Processing_Pipeline.pdf