SphericalHarmonics

constructor(bands: Int, coefficients: FloatArray)

Parameters

bands

Number of SH bands (1, 2, or 3 — determines coefficient count: 1, 4, or 9).

coefficients

Packed RGB SH coefficients; length must be bands² × 3.