Expand description
σ → CIE 1931 XYZ → linear sRGB — CPU oracle for canvas2d fallback and cold-path export.
WGSL twin: shaders/viewport/spectral.wgsl. HDR GPU path stays linear; display paths
apply sRGB gamma encode via sigma_to_display_rgb.
Functions§
- sigma_
to_ cie_ xyz - sigma_
to_ display_ rgb - sRGB 8-bit for canvas2d / HUD (gamma-encoded display).
- sigma_
to_ linear_ rgb - xyz_
to_ linear_ srgb