Skip to content

neutralToneMapping() ​

ts
function neutralToneMapping(params?: ToneMappingParams): EffectPass<{
  uTexture: (__namedParameters: Readonly<EffectUniformContext>) => WebGLTexture;
  uExposure: number;
  uConvertToSRGB: boolean;
}>;

Creates a Neutral tone mapping effect (Khronos Neutral Tone Mapper). Designed to preserve color hue while compressing dynamic range.

Parameters ​

params? ​

ToneMappingParams

Configuration for the neutral tone mapping.

Returns ​

EffectPass<{ uTexture: (__namedParameters: Readonly<EffectUniformContext>) => WebGLTexture; uExposure: number; uConvertToSRGB: boolean; }>

Released under the MIT License.