Whether or not the spherical harmonics are generated as an irradiance map. Defaults to true.
Encodes the sh harmonics as an .ASH file (as used by Knald Lys and Helix3D).
Converts HDRI (equirectangular / panorama) image to its SH representation.
The Float32Array (for hdr) or Uint8ClampedArray (for ldr) image data as a flat list. Float32Arrays should only contains packed RGB data, while Uint8ClampedArray are RGBA.
The width of the image.
The height of the image.
A function that's called when processing is complete.
An optional function that's called when processing updates.
An optional SHOptions object.
Generated using TypeDoc
The options that can be passed to the
generateSH
function.