Linear Light and Encoded Color Values

Some color values use a nonlinear transfer curve for storage or display. Mixing those encoded values numerically can differ from mixing light.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a midpoint
  2. Keep scale separate from encoding

Trace a midpoint

A halfway value between encoded black and white can correspond to less than half linear light for a common display transfer curve. Decode to a linear representation when the intended operation averages light. See numeric intensity ranges.

Keep scale separate from encoding

Dividing a byte code by 255 changes its numeric range without removing its transfer function. Representation boundaries clarify which conversion has occurred.[1]

References

  1. Matt Pharr, Wenzel Jakob and Greg Humphreys, Physically Based Rendering ↩