Model loading · function

blackbody

The colour of a black body at kelvin, in linear Rec. 709, scaled to unit luminance: what Blender multiplies a light's colour by when the light takes its colour from a temperature.

Explained in Importing models.

function blackbody(kelvin: number): [number, number, number]
import { blackbody } from '@driftengine/assets';

Parameters

ParameterTypeDescription
kelvinnumber

In depth

Planck's law through the CIE 1931 observer, by the multi-lobe fit of Wyman, Sloan and Shirley. Within 1% of Blender's table, not equal to it: Blender's is fitted per range to its own colour configuration, and at 3000 K reads (1.771, 0.844, 0.272) where this reads (1.752, 0.850, 0.271).