Tonemap

Tonemapping is a process that bridges the gap between the extensive luminance range captured in HDR rendering and the limited display capabilities of standard screens. This implementation uses the Uncharted tonemapping algorithm, which is useful for its cinematic quality and flexibility.

The operator compresses the dynamic range through an S-shaped curve with independently adjustable shoulder, midtone, and toe regions. Rather than clipping bright values, it applies a film-like response that preserves detail throughout the luminance range.

../../_images/tonemap.png

Tonemap properties

Property

Type

Range

Description

Effect Strength

Float

0 - 1

Controls the overall intensity of the post-processing effect.

A

Float

0 - 1

Shoulder strength - Controls how quickly the curve approaches the display white point. Higher values create a stronger roll-off in highlights.

B

Float

0 - 1

Linear section strength - Affects the slope of the middle part of the curve. Higher values increase midtone contrast.

C

Float

0 - 1

Linear section length - Determines the extent of the linear section before the curve transitions to the toe and shoulder regions.

D

Float

0 - 1

Toe strength - Controls the compression of shadow regions. Higher values lift shadow details.

E

Float

0 - 1

Toe numerator - Fine-tunes the shape of the toe region and how it transitions into the linear section.

F

Float

0 - 1

Toe denominator - Works with parameter E to define the precise curvature of the toe region and shadow response.