exposureTone

Turns light that piles past 1 into a soft burn toward white, like film.

exposureTone(rgb: Expr): Expr

Import materials from shaders/std and use materials.exposureTone.

Apply it to summed emitted light before output. neutralTone is the cousin for a lit, tinted surface.

Parameters

NameTypeNotes
rgbExpr

Example

const glow = exposureTone(add(irradiance, emitter))

See also

  • neutralTone — Compresses bright color back into range without shifting its hue.
  • sensorGrain — Adds a fine per-pixel brightness jitter, so rendered light reads as photographed.

Used by

Irradiance