Skip to content

SH_COSINE_BAND

const SH_COSINE_BAND: readonly [1, number, number, number, 0.25, 0.25, 0.25, 0.25, 0.25]

Defined in: lightmap/sh.ts:26

Ramamoorthi & Hanrahan’s cosine-lobe convolution, over π.

The division is what makes a constant field come back as itself — a uniform radiance c integrates to πc — so these land where the flat ambient term sits, as the value that multiplies albedo.